Appium failed to initialize -Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c

Hi,
I am new to appium test i am getting the below error… please help me
DEVICE
IPHONE 6 PLUS (TRIED WITH REAL DEVICE AS WELL AS SIMULATOR)
Appium -Version 1.4.13
xcode -Version 7.3
used brew to install deviceinstaller
and followed required steps

Error
Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app

Log
info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 2.835 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 0.773 ms - 23 {“status”:0,“value”:[]}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“9.3”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“iPad Air”}}

info: Client User-Agent string: Appium (unknown version) CFNetwork/760.4.2 Darwin/15.4.0 (x86_64)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************

info: [debug] Using local app from command line: /Users/mr250417/Desktop/Test.app
info: [debug] Creating new appium session 2bdc87dc-b567-4594-820a-c726bcc61a3e
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Users/mr250417/Desktop/Test.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Users/mr250417/Desktop/Test.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/mr250417/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/mr250417/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/mr250417/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app

info: [debug] App is not installed. Will try to install the app.
info: [debug] Cleaning up appium session
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app\n)”,“killed”:false,“code”:2,“signal”:null,“cmd”:"/bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app",“origValue”:“Command failed: /bin/sh -c ideviceinstaller -u 9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app\n”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 75.410 ms - 514

UDID is wrong, can u run below command idevice_id -l and used these UDID to script.

Just to add a little clarity here: OP is using a Simulator UUID (you can tell from the dashes). ideviceinstaller only works with real devices.

@wreed that my mistake, i was intended to real device only.

Thanks to all for the response… I have tried in real device as well as simulator… But still facing this issue.
Steps followed

install xcode
install xcode command line too
linstall Appium GUI *.dmg file Appium
Install homebrew (assuming you have ruby installed on
your mac, if not install ruby first)
Install Java (it should come with mac OS)Install node and Maven using brew command from terminal
Install Appium server using node npm
install –g appiumappium &Authorize your iOS simulator and device to access by
Appium by typing the command from terminal: sudo authorize_ios
followed these steps to install.

You’ll need to post the logs of the current issue you face. The older one doesn’t seem to apply. Also, from your new description it seems you are not able to install Appium? Can you describe the problem better?

Wreed Thanks… That is current issue… earlier i was installed the node using sudo then removed it and installed without sudo(followed githubusr suggestion). I can see the version for node, npm, java, ruby.
Problem Description: As i mention earlier followed steps to install the appium then started the appium and did the settings in the apple icon (setting application path and logs and UUID). Launch the appium server is coming up very well, and checked by clicking the doctor it shows everything looks green, when i click the search icon it is showing that error…

error: Failed to start an Appium session, err was: Error: Command
failed: /bin/sh -c ideviceinstaller -u
9D1D0C9C-8193-41A5-8067-7D4F0D162DD1 -i /Users/mr250417/Desktop/Test.app

Ok, the UUID is of a Simulator, but ideviceinstaller will only work with a real device. When using Appium, you do not need to give the UUID of a Simulator. In fact, it will not work at all.

Thanks wreed… I will try now.

Hi Wreed,
I am new to appium and I faced the same issue as @suram mentioned above. I tried appium using real device connected to my mac. But appium was throwing an error

Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Installing /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117214-12188-f4svdm/UICatalog.app failed)”,“origValue”:“Installing /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117214-12188-f4svdm/UICatalog.app failed”},“sessionId”:null}

can you please help me out in rectifying the same?

Your error doesn’t reference ideviceinstaller at all. Seems like an entirely different issue.

However, if you disagree, try the steps as outlined above and report what worked/failed.

Thanks @wreed for your suggestion.

I have tried with the above mentioned steps. But when I tried to debug the issue, I was able to find that the iOS app(UICatalog.app) is not getting installed in the device. The appium log is shown as below.

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --command-timeout “7200” --debug-log-spacing --platform-version “8.4.1” --platform-name “iOS” --app “/Users/controller/Downloads/java_ios/TestApp8.4.app.zip” --udid “e59645ec79efeeb7452f34da967b6ca62b61fa07” --full-reset --show-ios-log --device-name “TCS’s iPhone6”

info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)

info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“app”:"/Users/controller/Downloads/java_ios/TestApp8.4.app.zip",“udid”:“e59645ec79efeeb7452f34da967b6ca62b61fa07”,“address”:“127.0.0.1”,“fullReset”:true,“deviceName”:“TCS’s iPhone6”,“platformName”:“iOS”,“platformVersion”:“8.4.1”,“showIOSLog”:true,“defaultCommandTimeout”:7200,“debugLogSpacing”:true}
info: Console LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}
info: <-- GET /wd/hub/status 200 6.769 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: <-- GET /wd/hub/status 200 3.872 ms - 105 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”}}}

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/controller/Downloads/java_ios/UICatalog6.1.app.zip",“appium-version”:“1.4.13”,“platformVersion”:“8.4.1”,“name”:“Java iOS tutorial Wed Mar 15 17:29:46 IST 2017”,“platformName”:“ios”,“deviceName”:“TCS’s iPhone6”}}

info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************

info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version, name
info: [debug] Using local .zip from desired caps: /Users/controller/Downloads/java_ios/UICatalog6.1.app.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/controller/Downloads/java_ios/UICatalog6.1.app.zip copied to /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/appium-app.zip

info: [debug] Unzipping /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/appium-app.zip
info: [debug] Testing zip archive: /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app
info: [debug] Creating new appium session 0d621ecf-6dda-4195-92bc-2bd87a50c5c6
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/controller/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/controller/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/controller/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid e59645ec79efeeb7452f34da967b6ca62b61fa07

info: [debug] App is not installed. Will try to install the app.

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”},“isShuttingDown”:false},“sessionId”:“0d621ecf-6dda-4195-92bc-2bd87a50c5c6”}

info: <-- GET /wd/hub/status 200 1.708 ms - 179 {“status”:0,“value”:{“build”:{“version”:“1.4.13”,“revision”:“c75d8adcb66a75818a542fe1891a34260c21f76a”},“isShuttingDown”:false},“sessionId”:“0d621ecf-6dda-4195-92bc-2bd87a50c5c6”}

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app

info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app

at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app\n)”,“killed”:false,“code”:128,“signal”:null,“cmd”:"/bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app",“origValue”:“Command failed: /bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app\n”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 3418.460 ms - 681

info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/controller/Downloads/java_ios/UICatalog6.1.app.zip",“appium-version”:“1.4.13”,“platformVersion”:“8.4.1”,“name”:“Java iOS tutorial Wed Mar 15 17:29:46 IST 2017”,“platformName”:“ios”,“deviceName”:“TCS’s iPhone6”}}

info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***

info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version, name
info: [debug] Using local .zip from desired caps: /Users/controller/Downloads/java_ios/UICatalog6.1.app.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/controller/Downloads/java_ios/UICatalog6.1.app.zip copied to /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-1c8x115/appium-app.zip
info: [debug] Unzipping /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-1c8x115/appium-app.zip
info: [debug] Testing zip archive: /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-1c8x115/appium-app.zip

info: [debug] Zip archive tested clean

info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-1c8x115/UICatalog.app
info: [debug] Creating new appium session dcc5a999-7a20-463a-8a3f-3984c2e4dcff
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…

info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/controller/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/controller/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js
info: [debug] Reusing dynamic bootstrap: /Users/controller/Library/Application Support/appium/bootstrap/bootstrap-5923cadea0343e3f.js

info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog

info: [debug] Creating iDevice object with udid e59645ec79efeeb7452f34da967b6ca62b61fa07

info: [debug] App is not installed. Will try to install the app.

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u e59645ec79efeeb7452f34da967b6ca62b61fa07 -i /var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-1c8x115/UICatalog.app

First, this is a much better log. You are right about it being ideviceinstaller.
Here is the command that is failing:

There are 2 things I’d like you to try to troubleshoot this:

  1. Try running the above command from a terminal. Note that you can change the location of the app if it’s not in ‘/var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/117215-17727-19hvb88/UICatalog.app’. Post the results here.
  2. Try to install this app onto the same device using Xcode. Post the results here.

Thank u @wreed

I will try to troubleshoot and let you know the status.

Hi Wreed,

As u explained, I tried with the troubleshooting methods. Here are the logs,

Step 1: Installing ‘(null)’

  • CreatingStagingDirectory (5%)
  • ExtractingPackage (15%)
  • InspectingPackage (20%)
  • TakingInstallLock (20%)
  • PreflightingApplication (30%)
  • InstallingEmbeddedProfile (30%)
  • VerifyingApplication (40%)
  • Error occurred: IncorrectArchitecture

Step 2: App is getting installed while using xcode 8.1

So I thought the error is with the app and I have used another app and now the app is getting installed using ideviceinstaller.

But the app is not getting launched in the device. It is getting appium error log as follows,

Encountered internal error running command: Error: Could not find Automation.tracetemplate in any of the followinglocations /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate,/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate

I tried running the “.app” file created using both Xcode 7 and Xcode 8.1. For both the apps, it is showing the same logs. I am using Appium version 1.5.3. Can you help me out in solving it?

VERY interesting. This could be because you are trying to install a Simulator build (x86 architecture) or a build that is built for 32 bit architecture (since this is a 64 bit machine [iPhone 6]). I would suspect the former but I’m not sure. I see you are using a different build and that’s gotten you past this so I won’t belabor this point.

For the current issue, I believe you are encountering this problem:

The problem is that Appium 1.5.3 does not support Xcode 8. I think if you upgrade to Appium 1.6 this problem will go away.

Hi @wreed,

I have tried installing appium 1.6.3 that supports iOS 10.1 and xcode 8.1. But while running the test scripts, I was getting the error in appium log as follows,

Rakeshs-Mac:~ controller$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/controller/Downloads/java_ios/IntegrationApp.app",“appium-version”:“1.6.4”,“xcodeConfigfile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/XcodeConfig.xcconfig",“platformVersion”:“10.1”,“name”:“Java iOS tutorial Tue Mar 21 17:00:40 IST 2017”,“bundleId”:“com.facebook.WebDriverAgentLib”,“platformName”:“ios”,“deviceName”:“iPhone 7”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/controller/Downloads/java_ios/IntegrationApp.app",“appium-version”:“1.6.4”,“xcodeConfigfile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/XcodeConfig.xcconfig",“platformVersion”:“10.1”,“name”:“Java iOS tutorial Tue Mar 21 17:00:40 IST 2017”,“bundleId”:“com.facebook.WebDriverAgentLib”,“platformName”:“ios”,“deviceName”:“iPhone 7”},null,null,null,null]
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: ‘/Users/controller/Downloads/java_ios/IntegrationApp.app’
[Appium] appium-version: ‘1.6.4’
[Appium] xcodeConfigfile: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/XcodeConfig.xcconfig’
[Appium] platformVersion: ‘10.1’
[Appium] name: ‘Java iOS tutorial Tue Mar 21 17:00:40 IST 2017’
[Appium] bundleId: ‘com.facebook.WebDriverAgentLib’
[Appium] platformName: ‘ios’
[Appium] deviceName: ‘iPhone 7’
[debug] [XCUITest] XCUITestDriver version: 2.4.2
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, xcodeConfigfile, name.
[BaseDriver] Session created with session id: b56f8298-9064-44b6-83ac-4186df4e8bfc
[debug] [XCUITest] Xcode version set to ‘8.1’
[debug] [XCUITest] iOS SDK Version set to ‘10.1’
[iOSSim] Constructing iOS simulator for Xcode version 8.1 with udid ‘0724BDB0-4AB9-466F-B58B-593D819B74CA’
[XCUITest] Determining device to run tests on: udid: ‘0724BDB0-4AB9-466F-B58B-593D819B74CA’, real device: false
[BaseDriver] Using local app ‘/Users/controller/Downloads/java_ios/IntegrationApp.app’
[debug] [XCUITest] Checking whether app ‘/Users/controller/Downloads/java_ios/IntegrationApp.app’ is actually present
[debug] [XCUITest] App is present
[debug] [iOSLog] Starting iOS 10.1 simulator log capture
[debug] [iOSLog] System log path: /Users/controller/Library/Logs/CoreSimulator/0724BDB0-4AB9-466F-B58B-593D819B74CA/system.log
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid ‘0724BDB0-4AB9-466F-B58B-593D819B74CA’ already booted
[debug] [XCUITest] Installing app ‘/Users/controller/Downloads/java_ios/IntegrationApp.app’ on 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
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=0724BDB0-4AB9-466F-B58B-593D819B74CA -configuration Debug’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/D65EEB26-E2AE-49F6-828B-A5E505BDE0FE/Session-WebDriverAgentRunner-2017-03-21_170048-FT0w4I.log
[debug] [WebDriverAgent] Sim: Mar 21 17:00:48 Rakeshs-Mac CoreSimulatorBridge[582]: Requesting installation of file:///Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/ with options: {
[debug] [WebDriverAgent] Sim: CFBundleIdentifier = “com.apple.test.WebDriverAgentRunner-Runner”;
[debug] [WebDriverAgent] Sim: PackageType = Developer;
[debug] [WebDriverAgent] Sim: SimulatorRootPath = “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk”;
[debug] [WebDriverAgent] Sim: SimulatorUserPath = “/Users/controller/Library/Developer/CoreSimulator/Devices/0724BDB0-4AB9-466F-B58B-593D819B74CA/data”;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Mar 21 17:00:52 Rakeshs-Mac CoreSimulatorBridge[582]: Requesting launch of com.apple.test.WebDriverAgentRunner-Runner with options: {
[debug] [WebDriverAgent] Sim: arguments = (
[debug] [WebDriverAgent] Sim: “-NSTreatUnknownArgumentsAsOpen”,
[debug] [WebDriverAgent] Sim: NO,
[debug] [WebDriverAgent] Sim: “-ApplePersistenceIgnoreState”,
[debug] [WebDriverAgent] Sim: YES
[debug] [WebDriverAgent] Sim: );
[debug] [WebDriverAgent] Sim: environment = {
[debug] [WebDriverAgent] Sim: “DTX_CONNECTION_SERVICES_PATH” = “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/PrivateFrameworks/DTXConnectionServices.framework”;
[debug] [WebDriverAgent] Sim: “DYLD_FRAMEWORK_PATH” = “/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: “DYLD_LIBRARY_PATH” = “/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks”;
[debug] [WebDriverAgent] Sim: NSUnbufferedIO = YES;
[debug] [WebDriverAgent] Sim: “OS_ACTIVITY_DT_MODE” = YES;
[debug] [WebDriverAgent] Sim: “XCODE_DBG_XPC_EXCLUSIONS” = “com.apple.dt.xctestSymbolicator”;
[debug] [WebDriverAgent] Sim: XCTestConfigurationFilePath = “/var/folders/1c/l3pnssv95vb50qfmq13s9jvc0000gp/T/com.apple.dt.XCTest/5CCE0F89-2EE5-4462-B08F-71C5801777B7/remote-container/tmp/WebDriverAgentRunner-5CCE0F89-2EE5-4462-B08F-71C5801777B7.xctestconfiguration”;
[debug] [WebDriverAgent] Sim: “__XCODE_BUILT_PRODUCTS_DIR_PATHS” = “/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_FRAMEWORK_PATH” = “/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: “__XPC_DYLD_LIBRARY_PATH” = “/Users/controller/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Products/Debug-iphonesimulator”;
[debug] [WebDriverAgent] Sim: };
[debug] [WebDriverAgent] Sim: stderr = “/dev/ttys003”;
[debug] [WebDriverAgent] Sim: stdout = “/dev/ttys003”;
[debug] [WebDriverAgent] Sim: “wait_for_debugger” = 0;
[debug] [WebDriverAgent] Sim: }
[debug] [WebDriverAgent] Sim: Mar 21 17:00:52 Rakeshs-Mac CoreSimulatorBridge[582]: [Common] [FBSSystemService][0x72c] Sending request to open “com.apple.test.WebDriverAgentRunner-Runner”
[debug] [WebDriverAgent] Sim: Mar 21 17:00:52 Rakeshs-Mac CoreSimulatorBridge[582]: [Common] [FBSSystemService][0x72c] Request successful: <FBSProcessHandle: 0x7fc943e16190; XCTRunner:986; valid: YES>
[debug] [WebDriverAgent] Sim: Mar 21 17:00:52 Rakeshs-Mac XCTRunner[986]: assertion failed: 16C68 14B72: libxpc.dylib + 62597 [17F6B510-0FB1-30D3-B29C-D74A5D63719E]: 0x7d
[debug] [WebDriverAgent] Sim: Mar 21 17:00:52 Rakeshs-Mac XCTRunner[986]: Running tests…
[debug] [WebDriverAgent] Sim: Mar 21 17:00:56 Rakeshs-Mac XCTRunner[986]: Continuing to run tests in the background with task ID 1
[debug] [WebDriverAgent] Sim: Mar 21 17:00:57 Rakeshs-Mac XCTRunner[986]: Built at Mar 21 2017 13:39:56
[XCUITest] Detected that WebDriverAgent is running at url ‘http://10.251.157.174:8100
[debug] [WebDriverAgent] Sim: Mar 21 17:00:57 Rakeshs-Mac XCTRunner[986]: ServerURLHere->http://10.251.157.174:8100<-ServerURLHere
[XCUITest] WebDriverAgent started at url ‘http://10.251.157.174:8100
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.facebook.WebDriverAgentLib”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true}}
[debug] [WebDriverAgent] Sim: Mar 21 17:01:58 Rakeshs-Mac XCTRunner[986]: Enqueue Failure: UI Testing Failure - App accessibility isn’t loaded /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 35 1

What could be the reason such a log? Can u please help me out?

This bothers me:

And this appears to be the failure:

Googling this doesn’t tell me much. Seems like the WebDriverAgent is not compiling properly. Here is the info on running XCUITests:

Since this is no longer an ideviceinstaller issue, I suggest opening a new thread on this.