having the same issue , i noticed that the app is pushed to the device , but i can only see it in the storage manger (it doesn’t appear on the iphone desktop)
so i am guessing the error is because it tries to launch an app that can’t be launched.
here are my logs:
21-11-2016;18:49:24.401 [main] DEBUG media.muvix.framework.TestUtils - TestUtils executable media.muvix.framework.audioplayer.iosaudioplayer.IOSAudioPlayer useLocalArtifacts true
21-11-2016;18:49:24.401 [main] DEBUG media.muvix.framework.TestUtils - run path : /Users/muvix/Jenkins/workspace/e2e/audioPlayer.ipa
21-11-2016;18:49:24.402 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[HTTP] <-- GET /wd/hub/status 200 18 ms - 88
21-11-2016;18:49:26.024 [main] DEBUG media.muvix.framework.AppiumRunnable - uninstalled app
21-11-2016;18:49:26.042 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/muvix/Jenkins/workspace/e2e/audioPlayer.ipa",“noReset”:true,“newCommandTimeout”:7200,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“automationName”:“XCUITest”,“platformName”:“iOS”,“deviceName”:“c271c1b5f3951f2588cf0d87203756645fe37e9a”,“fullReset”:false,“platform”:“iOS”}}
21-11-2016;18:49:26.043 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/muvix/Jenkins/workspace/e2e/audioPlayer.ipa",“noReset”:true,“newCommandTimeout”:7200,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“automationName”:“XCUITest”,“platformName”:“iOS”,“deviceName”:“c271c1b5f3951f2588cf0d87203756645fe37e9a”,“fullReset”:false,“platform”:“iOS”},null,null,null,null]
21-11-2016;18:49:26.045 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] Creating new XCUITestDriver session
21-11-2016;18:49:26.045 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] Capabilities:
21-11-2016;18:49:26.045 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] app: ‘/Users/muvix/Jenkins/workspace/e2e/audioPlayer.ipa’
21-11-2016;18:49:26.046 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] noReset: true
21-11-2016;18:49:26.046 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] newCommandTimeout: 7200
21-11-2016;18:49:26.046 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
21-11-2016;18:49:26.046 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] automationName: ‘XCUITest’
21-11-2016;18:49:26.046 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] platformName: ‘iOS’
21-11-2016;18:49:26.047 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] deviceName: ‘c271c1b5f3951f2588cf0d87203756645fe37e9a’
21-11-2016;18:49:26.047 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] fullReset: false
21-11-2016;18:49:26.047 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] platform: ‘iOS’
21-11-2016;18:49:26.047 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[Appium] udid: ‘c271c1b5f3951f2588cf0d87203756645fe37e9a’
21-11-2016;18:49:26.050 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] XCUITestDriver version: 2.0.37
21-11-2016;18:49:26.055 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[BaseDriver] The following capabilities were provided, but are not recognized by appium: platform.
21-11-2016;18:49:26.057 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[BaseDriver] Session created with session id: 2b57f7a3-6ba1-4511-84d8-208a5c2a84f5
21-11-2016;18:49:26.101 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Xcode version set to ‘8.1’
21-11-2016;18:49:26.108 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] iOS SDK Version set to ‘10.1’
21-11-2016;18:49:26.185 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Available devices: c271c1b5f3951f2588cf0d87203756645fe37e9a
21-11-2016;18:49:26.185 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Creating iDevice object with udid c271c1b5f3951f2588cf0d87203756645fe37e9a
21-11-2016;18:49:26.187 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Determining device to run tests on: udid: ‘c271c1b5f3951f2588cf0d87203756645fe37e9a’, real device: true
21-11-2016;18:49:26.188 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[BaseDriver] Using local app ‘/Users/muvix/Jenkins/workspace/e2e/audioPlayer.ipa’
21-11-2016;18:49:26.189 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [BaseDriver] Copying local zip to tmp dir
21-11-2016;18:49:26.535 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [BaseDriver] Unzipping /var/folders/3f/_qdjj8t95l9f9wjclsv1gs900000gn/T/20161021-14412-1ngjhac/appium-app.zip
21-11-2016;18:49:26.536 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [BaseDriver] Testing zip archive: /var/folders/3f/_qdjj8t95l9f9wjclsv1gs900000gn/T/20161021-14412-1ngjhac/appium-app.zip
21-11-2016;18:49:28.546 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[BaseDriver] Unzipped local app to ‘/var/folders/3f/_qdjj8t95l9f9wjclsv1gs900000gn/T/20161021-14412-1ngjhac/Payload/Muvix.app’
21-11-2016;18:49:28.546 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Checking whether app ‘/var/folders/3f/_qdjj8t95l9f9wjclsv1gs900000gn/T/20161021-14412-1ngjhac/Payload/Muvix.app’ is actually present
21-11-2016;18:49:28.547 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] App is present
21-11-2016;18:49:28.551 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [ios-app-utils] Getting bundle ID from app ‘/var/folders/3f/_qdjj8t95l9f9wjclsv1gs900000gn/T/20161021-14412-1ngjhac/Payload/Muvix.app’: ‘media.muvix.wave’
21-11-2016;18:49:28.554 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
21-11-2016;18:49:28.555 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
21-11-2016;18:49:28.675 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Setting up real device
21-11-2016;18:49:28.848 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] App is already installed.
21-11-2016;18:49:28.848 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Full reset not requested. No need to install.
21-11-2016;18:49:28.849 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
21-11-2016;18:49:28.850 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
21-11-2016;18:49:28.850 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Launching WebDriverAgent on the device
21-11-2016;18:49:28.852 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
21-11-2016;18:49:28.853 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Killing hanging processes
21-11-2016;18:49:28.929 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Using real device logger ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
21-11-2016;18:49:28.931 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Beginning test with command ‘xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=c271c1b5f3951f2588cf0d87203756645fe37e9a -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
21-11-2016;18:49:30.707 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Waiting for WebDriverAgent to start on device
21-11-2016;18:49:34.683 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Log file for xcodebuild test: /Users/muvix/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/8D1CDA54-05B5-4018-843F-BAD09F834B2E/Session-WebDriverAgentRunner-2016-11-21_184934-966vI6.log
21-11-2016;18:49:47.918 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [WebDriverAgent] Device: Nov 22 18:43:09 h-iPhone-sl-Muvix XCTRunner[219] : Running tests…
21-11-2016;18:49:50.098 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [WebDriverAgent] Device: Nov 22 18:43:11 h-iPhone-sl-Muvix XCTRunner[219] : Continuing to run tests in the background with task ID 1
21-11-2016;18:49:51.429 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Detected that WebDriverAgent is running at url ‘http://10.0.0.37:8100’
21-11-2016;18:49:51.429 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] WebDriverAgent started at url ‘http://10.0.0.37:8100’
21-11-2016;18:49:51.433 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
21-11-2016;18:49:56.445 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“media.muvix.wave”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
21-11-2016;18:51:57.637 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch media.muvix.wave application”,“sessionId”:“D12CA85D-FF00-43B7-A4EC-81A059356023”,“status”:13}
21-11-2016;18:51:57.639 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch media.muvix.wave application
21-11-2016;18:51:57.639 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
21-11-2016;18:51:57.640 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Shutting down sub-processes
21-11-2016;18:51:57.641 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Shutting down xcodebuild process (pid 14454)
21-11-2016;18:51:57.649 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
21-11-2016;18:51:57.649 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Shutting down Logger process (pid 14459)
21-11-2016;18:51:57.651 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] System log exited with code ‘null’
21-11-2016;18:51:57.652 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Shutting down iproxy process (pid 14747)
21-11-2016;18:51:57.653 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] iproxy exited with code ‘null’
21-11-2016;18:51:57.654 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Removing WDA application from device
21-11-2016;18:51:58.201 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
21-11-2016;18:51:58.201 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
21-11-2016;18:51:58.202 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Launching WebDriverAgent on the device
21-11-2016;18:51:58.203 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
21-11-2016;18:51:58.204 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Killing hanging processes
21-11-2016;18:51:58.292 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Using real device logger ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
21-11-2016;18:51:58.293 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Beginning test with command ‘xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=c271c1b5f3951f2588cf0d87203756645fe37e9a -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
21-11-2016;18:51:59.362 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Waiting for WebDriverAgent to start on device
21-11-2016;18:52:03.940 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Log file for xcodebuild test: /Users/muvix/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/3BFD0921-4CAD-494D-BF64-EB79B5FFB1E5/Session-WebDriverAgentRunner-2016-11-21_185203-QnI4ss.log
21-11-2016;18:52:13.267 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [WebDriverAgent] Device: Nov 22 18:45:34 h-iPhone-sl-Muvix XCTRunner[226] : Running tests…
21-11-2016;18:52:14.437 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [WebDriverAgent] Device: Nov 22 18:45:35 h-iPhone-sl-Muvix XCTRunner[226] : Continuing to run tests in the background with task ID 1
21-11-2016;18:52:15.793 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] Detected that WebDriverAgent is running at url ‘http://10.0.0.37:8100’
21-11-2016;18:52:15.793 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[XCUITest] WebDriverAgent started at url ‘http://10.0.0.37:8100’
21-11-2016;18:52:15.794 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
21-11-2016;18:52:20.808 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“media.muvix.wave”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
21-11-2016;18:54:22.113 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch media.muvix.wave application”,“sessionId”:“F9A202F6-7EEB-45DB-B9E5-10424FAACEB8”,“status”:13}
21-11-2016;18:54:22.114 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch media.muvix.wave application
21-11-2016;18:54:22.115 [Thread-13] DEBUG media.muvix.framework.AppiumRunnable - appium :[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
and my capabilities are similar to Ryan_Griffin
Update:
I successfully got around this issue by downloading our official app from the app store.
and then removing the app from the device.
I did that because i noticed that in storage manager our app was present , and even after trying to delete it , it kept reappearing for some odd reason.
anyway, it seems to be working fine now.