Testing Failed when build using Xcode build command or appium












5














I am using :



Xcode 10.1
Os Version : 12.1
iPhone 6


I did follow all required steps to setup build and everything but still getting error when try to build project using xcode build.



I am confuse between 2 thing that is it signing issue or I am missing some config. in webdriver agent xproj.



Actual Error on xcode build command



Testing failed:
WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: The operation couldn’t be completed. (DTXMessage error 1.))))


Actual Error on appium



Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.


Some other logs if that helps :



2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}
2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Failed to install or launch the test runner” UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/asianweb/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2018.11.19_11-02-01-+0530.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7f8ec7ac6c70 {Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}}}


Other logs info



{
deviceSerialNumber: XXXXXXXXXXXX
identifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
deviceClass: iPhone
deviceName: qa’s iPhone
deviceIdentifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
productVersion: 12.1
buildVersion: 16B92
deviceSoftwareVersion: 12.1 (16B92)
deviceArchitecture: arm64
deviceTotalCapacity: 11945508864
deviceAvailableCapacity: 5477302272
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsPaired: YES
deviceIsActivated: YES
deviceActivationState: Activated
isPasscodeLocked: NO
deviceType: <DVTDeviceType:0x8f7ec4d00ca0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
bootArgs: (null)
connected: yes
isWirelessEnabled: no
connectionType: direct
hostname: (null)
bonjourServiceName: 90:60:f1:6b:7f:91@fe80::9760:f1ff:fe6b:2f92._apple-mobdev2._tcp.local.
} (12.1 (16B92))


Note : While I run it, it puts my app and webdriveragent into iphone device and then stopped.










share|improve this question





























    5














    I am using :



    Xcode 10.1
    Os Version : 12.1
    iPhone 6


    I did follow all required steps to setup build and everything but still getting error when try to build project using xcode build.



    I am confuse between 2 thing that is it signing issue or I am missing some config. in webdriver agent xproj.



    Actual Error on xcode build command



    Testing failed:
    WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: The operation couldn’t be completed. (DTXMessage error 1.))))


    Actual Error on appium



    Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.


    Some other logs if that helps :



    2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}
    2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Failed to install or launch the test runner” UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/asianweb/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2018.11.19_11-02-01-+0530.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7f8ec7ac6c70 {Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}}}


    Other logs info



    {
    deviceSerialNumber: XXXXXXXXXXXX
    identifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
    deviceClass: iPhone
    deviceName: qa’s iPhone
    deviceIdentifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
    productVersion: 12.1
    buildVersion: 16B92
    deviceSoftwareVersion: 12.1 (16B92)
    deviceArchitecture: arm64
    deviceTotalCapacity: 11945508864
    deviceAvailableCapacity: 5477302272
    deviceIsTransient: NO
    ignored: NO
    deviceIsBusy: NO
    deviceIsPaired: YES
    deviceIsActivated: YES
    deviceActivationState: Activated
    isPasscodeLocked: NO
    deviceType: <DVTDeviceType:0x8f7ec4d00ca0 Xcode.DeviceType.iPhone>
    supportedDeviceFamilies: (
    1
    )
    applications: (null)
    provisioningProfiles: (null)
    hasInternalSupport: NO
    isSupportedOS: YES
    developerDiskMountError: (null)
    (null)
    bootArgs: (null)
    connected: yes
    isWirelessEnabled: no
    connectionType: direct
    hostname: (null)
    bonjourServiceName: 90:60:f1:6b:7f:91@fe80::9760:f1ff:fe6b:2f92._apple-mobdev2._tcp.local.
    } (12.1 (16B92))


    Note : While I run it, it puts my app and webdriveragent into iphone device and then stopped.










    share|improve this question



























      5












      5








      5


      1





      I am using :



      Xcode 10.1
      Os Version : 12.1
      iPhone 6


      I did follow all required steps to setup build and everything but still getting error when try to build project using xcode build.



      I am confuse between 2 thing that is it signing issue or I am missing some config. in webdriver agent xproj.



      Actual Error on xcode build command



      Testing failed:
      WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: The operation couldn’t be completed. (DTXMessage error 1.))))


      Actual Error on appium



      Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.


      Some other logs if that helps :



      2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}
      2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Failed to install or launch the test runner” UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/asianweb/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2018.11.19_11-02-01-+0530.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7f8ec7ac6c70 {Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}}}


      Other logs info



      {
      deviceSerialNumber: XXXXXXXXXXXX
      identifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
      deviceClass: iPhone
      deviceName: qa’s iPhone
      deviceIdentifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
      productVersion: 12.1
      buildVersion: 16B92
      deviceSoftwareVersion: 12.1 (16B92)
      deviceArchitecture: arm64
      deviceTotalCapacity: 11945508864
      deviceAvailableCapacity: 5477302272
      deviceIsTransient: NO
      ignored: NO
      deviceIsBusy: NO
      deviceIsPaired: YES
      deviceIsActivated: YES
      deviceActivationState: Activated
      isPasscodeLocked: NO
      deviceType: <DVTDeviceType:0x8f7ec4d00ca0 Xcode.DeviceType.iPhone>
      supportedDeviceFamilies: (
      1
      )
      applications: (null)
      provisioningProfiles: (null)
      hasInternalSupport: NO
      isSupportedOS: YES
      developerDiskMountError: (null)
      (null)
      bootArgs: (null)
      connected: yes
      isWirelessEnabled: no
      connectionType: direct
      hostname: (null)
      bonjourServiceName: 90:60:f1:6b:7f:91@fe80::9760:f1ff:fe6b:2f92._apple-mobdev2._tcp.local.
      } (12.1 (16B92))


      Note : While I run it, it puts my app and webdriveragent into iphone device and then stopped.










      share|improve this question















      I am using :



      Xcode 10.1
      Os Version : 12.1
      iPhone 6


      I did follow all required steps to setup build and everything but still getting error when try to build project using xcode build.



      I am confuse between 2 thing that is it signing issue or I am missing some config. in webdriver agent xproj.



      Actual Error on xcode build command



      Testing failed:
      WebDriverAgentRunner-Runner.app encountered an error (Failed to install or launch the test runner. (Underlying error: Unable to launch com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: The operation couldn’t be completed. (DTXMessage error 1.))))


      Actual Error on appium



      Error: Unable to launch WebDriverAgent because of xcodebuild failure: “xcodebuild failed with code 65”. Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.


      Some other logs if that helps :



      2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}
      2018-11-19 11:02:17.350 xcodebuild[2413:325556] Error Domain=IDETestOperationsObserverErrorDomain Code=4 “Failed to install or launch the test runner” UserInfo={NSLocalizedRecoverySuggestion=If you believe this error represents a bug, please attach the result bundle at /Users/asianweb/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2018.11.19_11-02-01-+0530.xcresult, NSLocalizedDescription=Failed to install or launch the test runner, NSUnderlyingError=0x7f8ec7ac6c70 {Error Domain=com.apple.platform.iphoneos Code=-12 “Unable to launch com.apple.test.WebDriverAgentRunner-Runner” UserInfo={NSLocalizedDescription=Unable to launch com.apple.test.WebDriverAgentRunner-Runner, NSUnderlyingError=0x7f8ec758be20 {Error Domain=DTXMessage Code=1 “(null)” UserInfo={DTXExceptionKey=The operation couldn’t be completed. Unable to launch com.apple.test.WebDriverAgentRunner-Runner because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier ‘com.apple.test.WebDriverAgentRunner-Runner’}}}}}


      Other logs info



      {
      deviceSerialNumber: XXXXXXXXXXXX
      identifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
      deviceClass: iPhone
      deviceName: qa’s iPhone
      deviceIdentifier: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6
      productVersion: 12.1
      buildVersion: 16B92
      deviceSoftwareVersion: 12.1 (16B92)
      deviceArchitecture: arm64
      deviceTotalCapacity: 11945508864
      deviceAvailableCapacity: 5477302272
      deviceIsTransient: NO
      ignored: NO
      deviceIsBusy: NO
      deviceIsPaired: YES
      deviceIsActivated: YES
      deviceActivationState: Activated
      isPasscodeLocked: NO
      deviceType: <DVTDeviceType:0x8f7ec4d00ca0 Xcode.DeviceType.iPhone>
      supportedDeviceFamilies: (
      1
      )
      applications: (null)
      provisioningProfiles: (null)
      hasInternalSupport: NO
      isSupportedOS: YES
      developerDiskMountError: (null)
      (null)
      bootArgs: (null)
      connected: yes
      isWirelessEnabled: no
      connectionType: direct
      hostname: (null)
      bonjourServiceName: 90:60:f1:6b:7f:91@fe80::9760:f1ff:fe6b:2f92._apple-mobdev2._tcp.local.
      } (12.1 (16B92))


      Note : While I run it, it puts my app and webdriveragent into iphone device and then stopped.







      appium appium-ios






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 at 5:10









      Wasiq Bhamla

      62159




      62159










      asked Nov 19 at 6:53









      Helping Hands

      3,03342566




      3,03342566
























          2 Answers
          2






          active

          oldest

          votes


















          1














          I was able to resolve issue by following steps :





          1. Uninstalled following :



            Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole



          2. Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ


          3. Restart my mac machine and iphone


          4. Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ


          5. And Yes it works.







          share|improve this answer





























            0














            For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution.



            However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window:



            Create a new simulator



            Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369647%2ftesting-failed-when-build-using-xcode-build-command-or-appium%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              I was able to resolve issue by following steps :





              1. Uninstalled following :



                Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole



              2. Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ


              3. Restart my mac machine and iphone


              4. Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ


              5. And Yes it works.







              share|improve this answer


























                1














                I was able to resolve issue by following steps :





                1. Uninstalled following :



                  Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole



                2. Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ


                3. Restart my mac machine and iphone


                4. Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ


                5. And Yes it works.







                share|improve this answer
























                  1












                  1








                  1






                  I was able to resolve issue by following steps :





                  1. Uninstalled following :



                    Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole



                  2. Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ


                  3. Restart my mac machine and iphone


                  4. Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ


                  5. And Yes it works.







                  share|improve this answer












                  I was able to resolve issue by following steps :





                  1. Uninstalled following :



                    Xcode,Appium,Xcode command line,ideviceinstaller,carthage,xpretty,deviceconsole



                  2. Reinstalled everything as per this video guide : https://youtu.be/ySglJIrDVMQ


                  3. Restart my mac machine and iphone


                  4. Again setup project in xcode as per this video guide : https://youtu.be/ySglJIrDVMQ


                  5. And Yes it works.








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 27 at 9:38









                  Helping Hands

                  3,03342566




                  3,03342566

























                      0














                      For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution.



                      However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window:



                      Create a new simulator



                      Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.






                      share|improve this answer




























                        0














                        For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution.



                        However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window:



                        Create a new simulator



                        Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.






                        share|improve this answer


























                          0












                          0








                          0






                          For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution.



                          However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window:



                          Create a new simulator



                          Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.






                          share|improve this answer














                          For iOS development I use Fastlane with the XCTest framework and I had the same problem as you described. However, I'm using a simulator, not a real device. To solve it I replaced iPhone 6 with iPhone XS Max in the list of simulators that should be used for testing. If you can also use any other device different from iPhone 6 you should try this solution.



                          However if you need to test your application on iPhone 6 you can recreate the corresponding simulator. In Xcode 10.1 press Window -> Devices and Simulators, then select the line called iPhone 6 and press Backspace. After that press + in the left bottom corner of window to create a new simulator. You will see this window:



                          Create a new simulator



                          Set all parameters as they are in this screenshot and then press Create. After that, try to run your test suite again.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 28 at 9:50

























                          answered Nov 23 at 10:24









                          Roman Podymov

                          1,39611328




                          1,39611328






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369647%2ftesting-failed-when-build-using-xcode-build-command-or-appium%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              404 Error Contact Form 7 ajax form submitting

                              How to know if a Active Directory user can login interactively

                              TypeError: fit_transform() missing 1 required positional argument: 'X'