Can't launch App ios 10, but WDA installed! [SOLVED]

[SOLVED]It wasn’t recognizing the bundleId I was passing it. I’ve now let Appium handle auto-fiding the bundleId, and am just now passing it the .APP capability.

I’ve successfully got the WebDriverAgent to install, but it reports that it can’t find my bundle(even though the app is already installed on the device). This bundleId worked fine on Appium 1.5.3 when I was on iOS 9.3.1. But now that I’m on 1.6.1 and 10.1.1, I’m getting the following log outputs.

[Xcode] ▸ Linking WebDriverAgentRunner

[Xcode] ▸ Copying /Users/ryan.bob5/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework

[Xcode] ▸ Signing /Users/ryan.bob5/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework

[Xcode] ▸ Touching WebDriverAgentRunner.xctest

[Xcode] ▸ Signing /Users/ryan.bob5/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest

[Xcode] ▸ Signing /Users/ryan.bob5/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app

[Xcode] writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/15/644bpfg908g51_4yzd4x4fnm4mrhjf/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/d3cec87b56a7fb48495c6cbe19b24c39/341028a6bdab23e3b255d85e2303195f861b2073/ManifestCache.plist

[debug] [WebDriverAgent] Device: Nov 18 14:35:42 Ryan-Bobs-iPhone kernel(Sandbox)[0] : SandboxViolation: XCTRunner(266) deny(1) file-read-times /var
[debug] [WebDriverAgent] Device: Nov 18 14:35:42 Ryan-Bobs-iPhone XCTRunner[266] : Running tests…
[debug] [WebDriverAgent] Device: Nov 18 14:35:43 Ryan-Bobs-iPhone XCTRunner[266] : Continuing to run tests in the background with task ID 1
[XCUITest] Detected that WebDriverAgent is running at url ‘http://10.9.21.167:8100
[XCUITest] WebDriverAgent started at url ‘http://10.9.21.167:8100
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.engauge.RedRooster”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.engauge.RedRooster application”,“sessionId”:“FA8E8F65-FF84-44E8-9E2D-7309FE840B03”,“status”:13}
[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.engauge.RedRooster application
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down WebDriverAgent
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGTERM’
[XCUITest] System log exited with code ‘null’
[XCUITest] iproxy exited
[debug] [XCUITest] WebDriverAgent process did not end in a timely fashion. Sending SIGHUP signal…
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes

Here is a separate run.

[XCUITest] Detected that WebDriverAgent is running at url ‘http://10.9.22.112:8100
[XCUITest] WebDriverAgent started at url ‘http://10.9.22.112:8100
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.engauge.RedRooster”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Failed to launch com.engauge.RedRooster application”,“sessionId”:“F0D32CA0-5F64-4C80-B21C-90CF9ADFBB28”,“status”:13}
[debug] [XCUITest] Unable to start WebDriverAgent session: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.engauge.RedRooster application
[XCUITest] UnknownError: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.engauge.RedRooster application
at errorFromCode (…/…/…/lib/mjsonwp/errors.js:398:10)
at XCUITestDriver.callee$0$0$ (…/…/…/lib/commands/proxy-helper.js:18:11)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
{ UnknownError: An unknown server-side error occurred while processing the command. Original error: Failed to launch com.engauge.RedRooster application
at errorFromCode (…/…/…/lib/mjsonwp/errors.js:398:10)
at XCUITestDriver.callee$0$0$ (…/…/…/lib/commands/proxy-helper.js:18:11)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) jsonwpCode: 13 }
[debug] [JSONWP Proxy] Proxying [DELETE /session/f27a1715-97b0-4908-a202-a0baf88a63d6] to [DELETE http://localhost:8100/session/F0D32CA0-5F64-4C80-B21C-90CF9ADFBB28] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “ACB84B91-8EF8-41EC-AC25-DEC47C0CA43B”,\n “status” : 0\n}”
[XCUITest] Shutting down WebDriverAgent

Can you share the desired capabilities ?

DesiredCapabilities dc = new DesiredCapabilities();
    dc.setCapability("bundleId", "com.engauge.RedRooster");

    dc.setCapability(MobileCapabilityType.DEVICE_NAME, "Ryan Bobs iPhone");
    dc.setCapability(MobileCapabilityType.PLATFORM_NAME, "iPhone 5s");
    dc.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.1.1");
    dc.setCapability("autoAcceptAlerts", true);
    dc.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 2147482);
    dc.setCapability(MobileCapabilityType.UDID, "341028a6bdab23e3b255d85e2303295f861b4051");
    dc.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole/deviceconsole");
    dc.setCapability("xcodeConfigFile", "/Users/ryan.bob5/IdeaProjects/CFAOne/xcconfig");
    dc.setCapability("showXcodeLog", true);

    try {
        Runtime.getRuntime().exec("lsof -i tcp: 4723 | awk 'NR!=1 {print $2}' | xargs kill -9").waitFor();
    }
    catch(IOException | InterruptedException e) {
        e.printStackTrace();
    }

    service = AppiumDriverLocalService.buildDefaultService();
    service.start();

    try {
        driver = new IOSDriver(new URL("http://localhost:4723/wd/hub"), dc);
    }
    catch(MalformedURLException e) {
        System.err.println("Invalid URL");
    }

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.

@Shachar_Levi I guess WDA is already installed in ur device