Appium 1.6 XCUITest : App does not open in iOS real device

Hi,
I want to run test against IOS 10 Device. For this I Installed Appium 1.6 with iOS-deploy and Carthage. As of now when I run the test case, WebDriverAgent is getting installed and blank screen is opened. But the ipa which needs to be tested is not launched.

Here is the Appium logs :

[Appium] Welcome to Appium v1.6.0
[Appium] Non-default server args:
[Appium] noReset: true
[Appium] Deprecated server args:
[Appium] --no-reset => --default-capabilities ‘{“noReset”:true}’
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] noReset: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.6.0”…
[HTTP] <-- GET /wd/hub/status 200 20 ms - 83
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“app”:"/Users/openscg/Documents/workspace/spitfire-cm/MBAssetSeederExample.ipa",“autoLaunch”:true,“launchTimeout”:120000,“sendKeyStrategy”:“setValue”,“udid”:“10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9”,“newCommandTimeout”:180,“platformVersion”:“10.0.1”,“xcodeConfigFile”:"/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig",“showIOSLog”:true,“fullReset”:true,“deviceName”:“iPhone”,“platformName”:“iOS”,“bundleId”:“com.asurion.MBAssetSeederExample”,“iosInstallPause”:8000}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“automationName”:"XCUITes…
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] automationName: ‘XCUITest’
[Appium] waitForAppScript: ‘true;’
[Appium] app: ‘/Users/openscg/Documents/workspace/spitfire-cm/MBAssetSeederExample.ipa’
[Appium] autoLaunch: true
[Appium] launchTimeout: 120000
[Appium] sendKeyStrategy: ‘setValue’
[Appium] udid: ‘10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9’
[Appium] newCommandTimeout: 180
[Appium] platformVersion: ‘10.0.1’
[Appium] xcodeConfigFile: ‘/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig’
[Appium] showIOSLog: true
[Appium] fullReset: true
[Appium] deviceName: ‘iPhone’
[Appium] platformName: ‘iOS’
[Appium] bundleId: ‘com.asurion.MBAssetSeederExample’
[Appium] iosInstallPause: 8000
[Appium] noReset: true
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] Session created with session id: cdde933a-b3b9-4558-bead-428e7e43255f
[debug] [XCUITest] Xcode version set to ‘8.0’
[debug] [XCUITest] iOS SDK Version set to ‘10.0’
[debug] [XCUITest] Available devices: 10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9
[debug] [XCUITest] Creating iDevice object with udid 10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9
[XCUITest] Determining device to run tests on: udid: ‘10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9’, real device: true
[BaseDriver] Using local app ‘/Users/openscg/Documents/workspace/spitfire-cm/MBAssetSeederExample.ipa’
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/zr/d_br741979q8lr823fz4pgj40000gp/T/2016924-2798-g8enmw.5mwgl4ygb9/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/zr/d_br741979q8lr823fz4pgj40000gp/T/2016924-2798-g8enmw.5mwgl4ygb9/appium-app.zip
[BaseDriver] Unzipped local app to ‘/var/folders/zr/d_br741979q8lr823fz4pgj40000gp/T/2016924-2798-g8enmw.5mwgl4ygb9/Payload/DataImporter.app’
[debug] [XCUITest] Checking whether app is actually present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[XCUITest] Setting up real device
[debug] [XCUITest] Stdout from app isInstalled check: […] Waiting for iOS device to be connected
[…] Using iPhone 5c (GSM) ‘Asurion’s iPhone’ (10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9).
true

[debug] [XCUITest] App is installed.
[debug] [XCUITest] Full reset not requested. No need to install.
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Using Xcode configuration file: ‘/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig’
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9 --xcode-config-file “/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig”’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[XCUITest] The real device logger ‘idevicesyslog’ was unable to start log capture. Please try installing ‘deviceconsole’ (‘npm install -g deviceconsole’) and specify the path to it using the ‘realDeviceLogger’ capability.
[debug] [XCUITest] Log file for xcodebuild test: /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/513C1FFB-F149-4046-AA73-9E374B5FC14D/Session-WebDriverAgentRunner-2016-10-24_184159-pys3OW.log
[Xcode] 2016-10-24 18:44:00.326 xcodebuild[2839:26769] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/513C1FFB-F149-4046-AA73-9E374B5FC14D/Session-WebDriverAgentRunner-2016-10-24_184159-pys3OW.log” UserInfo={NSLocalizedDescription=Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/513C1FFB-F149-4046-AA73-9E374B5FC14D/Session-WebDriverAgentRunner-2016-10-24_184159-pys3OW.log}

[Xcode] 2016-10-24 18:44:00.375 xcodebuild[2839:26774] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7fee7e561960>

[Xcode]
Testing failed:

[Xcode] Test target WebDriverAgentRunner encountered an error (Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/513C1FFB-F149-4046-AA73-9E374B5FC14D/Session-WebDriverAgentRunner-2016-10-24_184159-pys3OW.log)
** TEST FAILED **

[Xcode] 1970-01-27 10:00:46.889949 XCTRunner[5067:138326] Running tests…

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying…
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code ‘0’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Using Xcode configuration file: ‘/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig’
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=10cf10f78bbe1a7bb84f70ec0d339ff6f8af5bf9 --xcode-config-file “/Users/openscg/Documents/workspace/spitfire-cm/src/test/resources/memories.xcconfig”’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[XCUITest] The real device logger ‘idevicesyslog’ was unable to start log capture. Please try installing ‘deviceconsole’ (‘npm install -g deviceconsole’) and specify the path to it using the ‘realDeviceLogger’ capability.
[debug] [XCUITest] Log file for xcodebuild test: /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B95EA5A7-C5B6-4219-ABC2-DD2F39B8E447/Session-WebDriverAgentRunner-2016-10-24_184410-3HW7mn.log
[Xcode] 2016-10-24 18:46:11.487 xcodebuild[3125:27786] Error Domain=IDETestOperationsObserverErrorDomain Code=3 “Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B95EA5A7-C5B6-4219-ABC2-DD2F39B8E447/Session-WebDriverAgentRunner-2016-10-24_184410-3HW7mn.log” UserInfo={NSLocalizedDescription=Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B95EA5A7-C5B6-4219-ABC2-DD2F39B8E447/Session-WebDriverAgentRunner-2016-10-24_184410-3HW7mn.log}

[Xcode] 2016-10-24 18:46:11.539 xcodebuild[3125:28836] Connection peer refused channel request for “dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface”; channel canceled <DTXChannel: 0x7f80d86a5020>

[Xcode]
Testing failed:

[Xcode] Test target WebDriverAgentRunner encountered an error (Canceling tests due to timeout in Checking test manager availability… If you believe this error represents a bug, please attach the log file at /Users/openscg/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/B95EA5A7-C5B6-4219-ABC2-DD2F39B8E447/Session-WebDriverAgentRunner-2016-10-24_184410-3HW7mn.log)
** TEST FAILED **

[Xcode] 1970-01-27 10:02:49.400798 XCTRunner[5102:139264] Running tests…

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Reset not set, continuing
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 281215 ms - 167
Killed: 9

I have the same issue,

The webdriver gets installed and opens appium.io.

The app is left untouched…

i guess its something related to
[XCUITest] The real device logger ‘idevicesyslog’ was unable to start log capture. Please try installing ‘deviceconsole’ (‘npm install -g deviceconsole’) and specify the path to it using the ‘realDeviceLogger’ capability.

need to make sure that you have realDeviceLogger capability and deviceconsole installed

capabilities.setCapability(“realDeviceLogger”,"/usr/local/lib/node_modules/deviceconsole/deviceconsole");

Also make sure WebDriverAgentRunner is also build successfully from xcode.