[Real ios device] Intruments exited with code 255

Hi all,

I ran my test with appium, appium install file *.ipa successfully on my ios device (iphone 5, version 9.3). But appium can not run my app. this is appium log:

"$ appium -a 127.0.0.1 --full-reset

[Appium] Welcome to Appium v1.5.0 (REV 0123e04faed98c06dc395a2ec0d7fa0de2f56d5d)
[Appium] Non-default server args:
[Appium] address: '127.0.0.1’
[Appium] fullReset: true
[Appium] Deprecated server args:
[Appium] --full-reset => --default-capabilities '{“fullReset”:true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] fullReset: true
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/hunter/Documents/Git-Folder-Chotot/aquabot/ios/ChoTot.ipa",“platformVersion”:“9.3”,“bundleId”:“vn.chotot.iosapp”,“platformName”:"iO…
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] app: '/Users/hunter/Documents/Git-Folder-Chotot/aquabot/ios/ChoTot.ipa’
[Appium] platformVersion: '9.3’
[Appium] bundleId: 'vn.chotot.iosapp’
[Appium] platformName: 'iOS’
[Appium] udid: 'f36c42921d5449c823a96582e174f68916c479c8’
[Appium] deviceName: 'Minh Nhut’s iPhone’
[Appium] platform: 'MAC’
[Appium] fullReset: true
[BaseDriver] The following capabilities were provided, but are not recognized by appium: platform.
[BaseDriver] Session created with session id: 38b42909-ae21-4e7c-8c30-3eca36ad31a9
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/hunter/Documents/Git-Folder-Chotot/aquabot/ios/ChoTot.ipa’
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/2016424-71243-vwd0u9/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/2016424-71243-vwd0u9/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/2016424-71243-vwd0u9/Payload/ChoTot.app’
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/instruments_sock
[debug] [iOS] No language specified. Using default strings
[debug] [iOS] Strings file not found. Looking in ‘en.lproj’ directory
[iOS] Could not file localizable strings file ‘Localizable.strings’!
[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/hunter/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {“nodePath”:"/usr/local/Cellar/node/5.9.0/bin/node",“commandProxyClientPath”:"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js",“instrumentsSock”:"/var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
…bug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
[debug] [UIAuto] Dynamic bootstrap path: /Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js
[debug] [iOS] Running ios real device reset flow
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog’
[debug] [iOS] Creating iDevice object with udid f36c42921d5449c823a96582e174f68916c479c8
[debug] [iOS] App is installed.
[debug] [iOS] fullReset requested. Forcing app install.
[debug] [iOS] Starting UIAutoClient, and launching Instruments.
[debug] [UIAuto] Instruments socket server started at /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/instruments_sock
[debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
[debug] [Instruments] Attempting to launch instruments, this is try #1
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'f36c42921d5449c823a96582e174f68916c479c8’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments/instrumentscli0.trace -w f36c42921d5449c823a96582e174f68916c479c8 vn.chotot.iosapp -e UIASCRIPT “/Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js” -e UIARESULTSPATH /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] 2016-05-24 10:20:51.944 instruments[71302:5192629] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-05-24 10:20:52.180 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7fbcee3aaaa0>
2016-05-24 10:20:52.181 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.device.xpccontrol”; channel canceled <DTXChannel: 0x7fbcee602a70>
2016-05-24 10:20:52.181 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.deviceinfo”; channel canceled <DTXChannel: 0x7fbcee528350>
2016-05-24 10:20:52.182 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol”; channel canceled <DTXChannel: 0x7fbcee52bb70>
2016-05-24 10:20:52.182 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol.posixspawn”; channel canceled <DTXChannel: 0x7fbcee36f2c0>
2016-05-24 10:20:52.182 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.mobilenotifications”; channel canceled <DTXChannel: 0x7fbcee3d78c0>
2016-05-24 10:20:52.182 instruments[71302:5192649] Connection peer refused channel request for “com.apple.instruments.server.services.device.applictionListing”; channel canceled <DTXChannel: 0x7fbcee3cac30>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:20:52.182 instruments[71302:5192649] Connection peer refused channel request for “com.apple.dt.Xcode.WatchProcessControl”; channel canceled <DTXChannel: 0x7fbcee70a990>
2016-05-24 10:20:52.183 instruments[71302:5192629] Connection peer refused channel request for “com.apple.instruments.server.services.wireless”; channel canceled <DTXChannel: 0x7fbcee3d95c0>
Instruments Usage Error: Specified target process is invalid: vn.chotot.iosapp
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #2
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'f36c42921d5449c823a96582e174f68916c479c8’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments/instrumentscli0.trace -w f36c42921d5449c823a96582e174f68916c479c8 vn.chotot.iosapp -e UIASCRIPT “/Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js” -e UIARESULTSPATH /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] 2016-05-24 10:20:59.691 instruments[71314:5192844] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: vn.chotot.iosapp
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #3
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'f36c42921d5449c823a96582e174f68916c479c8’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments/instrumentscli0.trace -w f36c42921d5449c823a96582e174f68916c479c8 vn.chotot.iosapp -e UIASCRIPT “/Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js” -e UIARESULTSPATH /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.088 instruments[71322:5192940] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.501 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7fa925618360>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.501 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.device.xpccontrol”; channel canceled <DTXChannel: 0x7fa925588a50>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.502 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.deviceinfo”; channel canceled <DTXChannel: 0x7fa92538b680>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.502 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol”; channel canceled <DTXChannel: 0x7fa925352bf0>
2016-05-24 10:21:07.502 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol.posixspawn”; channel canceled <DTXChannel: 0x7fa9253726e0>
2016-05-24 10:21:07.502 instruments[71322:5192935] Connection peer refused channel request for “com.apple.instruments.server.services.mobilenotifications”; channel canceled <DTXChannel: 0x7fa92538b9d0>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.503 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.device.applictionListing”; channel canceled <DTXChannel: 0x7fa925499be0>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:07.503 instruments[71322:5192938] Connection peer refused channel request for “com.apple.dt.Xcode.WatchProcessControl”; channel canceled <DTXChannel: 0x7fa92560d990>
2016-05-24 10:21:07.503 instruments[71322:5192908] Connection peer refused channel request for “com.apple.instruments.server.services.wireless”; channel canceled <DTXChannel: 0x7fa925514930>
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: vn.chotot.iosapp
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #4
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'f36c42921d5449c823a96582e174f68916c479c8’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments/instrumentscli0.trace -w f36c42921d5449c823a96582e174f68916c479c8 vn.chotot.iosapp -e UIASCRIPT “/Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js” -e UIARESULTSPATH /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:14.670 instruments[71331:5193077] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:14.733 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7ff285499d20>
2016-05-24 10:21:14.733 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.device.xpccontrol”; channel canceled <DTXChannel: 0x7ff2854b2a30>
2016-05-24 10:21:14.733 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.deviceinfo”; channel canceled <DTXChannel: 0x7ff2854a1e80>
2016-05-24 10:21:14.733 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol”; channel canceled <DTXChannel: 0x7ff285613ae0>
2016-05-24 10:21:14.734 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol.posixspawn”; channel canceled <DTXChannel: 0x7ff285610f20>
2016-05-24 10:21:14.734 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.mobilenotifications”; channel canceled <DTXChannel: 0x7ff2855467c0>
2016-05-24 10:21:14.734 instruments[71331:5193019] Connection peer refused channel request for “com.apple.instruments.server.services.device.applictionListing”; channel canceled <DTXChannel: 0x7ff285611f00>
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:14.734 instruments[71331:5193019] Connection peer refused channel request for “com.apple.dt.Xcode.WatchProcessControl”; channel canceled <DTXChannel: 0x7ff285619de0>
2016-05-24 10:21:14.734 instruments[71331:5193072] Connection peer refused channel request for “com.apple.instruments.server.services.wireless”; channel canceled <DTXChannel: 0x7ff28561a9c0>
Instruments Usage Error: Specified target process is invalid: vn.chotot.iosapp
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [iOSSim] Killing all iOS Simulators
[debug] [Instruments] Attempting to launch instruments, this is try #5
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID 'f36c42921d5449c823a96582e174f68916c479c8’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: '/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments/instrumentscli0.trace -w f36c42921d5449c823a96582e174f68916c479c8 vn.chotot.iosapp -e UIASCRIPT “/Users/hunter/Library/Application Support/appium/bootstrap/bootstrap-5e34876f27a599d3.js” -e UIARESULTSPATH /var/folders/fy/14y8wfl53qjfx_l1vnm3fc1r0000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:22.047 instruments[71339:5193207] WebKit Threading Violation - initial use of WebKit from a secondary thread.
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:22.075 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.capabilities”; channel canceled <DTXChannel: 0x7ffe2449d890>
2016-05-24 10:21:22.076 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.device.xpccontrol”; channel canceled <DTXChannel: 0x7ffe246611c0>
2016-05-24 10:21:22.076 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.deviceinfo”; channel canceled <DTXChannel: 0x7ffe24636c80>
2016-05-24 10:21:22.076 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol”; channel canceled <DTXChannel: 0x7ffe2433c760>
2016-05-24 10:21:22.076 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.processcontrol.posixspawn”; channel canceled <DTXChannel: 0x7ffe24661480>
2016-05-24 10:21:22.076 instruments[71339:5193205] Connection peer refused channel request for “com.apple.instruments.server.services.mobilenotifications”; channel canceled <DTXChannel: 0x7ffe24640ea0>
2016-05-24 10:21:22.077 instruments[71339:5193207] Connection peer refused channel request for “com.apple.instruments.server.services.device.applictionListing”; channel canceled <DTXChannel: 0x7ffe2433e330>
Instruments Usage Error: Specified target process is invalid: vn.chotot.iosapp
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] [INST STDERR] 2016-05-24 10:21:22.077 instruments[71339:5193207] Connection peer refused channel request for “com.apple.dt.Xcode.WatchProcessControl”; channel canceled <DTXChannel: 0x7ffe24636b30>
2016-05-24 10:21:22.083 instruments[71339:5193207] Connection peer refused channel request for “com.apple.instruments.server.services.wireless”; channel canceled <DTXChannel: 0x7ffe2449bb10>
[debug] [Instruments] Instruments exited with code 255
[Instruments] Error launching instruments: Instruments crashed on startup
[Instruments] Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
** at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)**
** at Instruments.launch$ (lib/instruments.js:210:15)**
** 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 throw] (/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)**
** at run (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:104:47)**
** at /usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:115:28**
** at flush (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)**
** at _combinedTickCallback (node.js:376:9)**
** at process._tickCallback (node.js:407:11)**
** [Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch]**
[MJSONWP] Encountered internal error running command: Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
** at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)**
** at Instruments.launch$ (lib/instruments.js:210:15)**
** 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 throw] (/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)**
** at run (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:104:47)**
** at /usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:115:28**
at flush (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)
[HTTP] <-- POST /wd/hub/session 500 46193 ms - 232"

And this is my code to remote appium, it worked great with ios simualator:

"public static IOSDriver remoteIOSDevice( String deviceName, String devicePlatformVersion,
String port) throws Exception {

    IOSDriver iosDriver;

  DesiredCapabilities cap = new DesiredCapabilities();
  File appDir = new File(IOSConfig.appDir);
  File app = new File(appDir, IOSConfig.app);

  cap.setCapability("platformName", IOSConfig.platformName);
  cap.setCapability("platformVersion", devicePlatformVersion);
  cap.setCapability("platform", IOSConfig.platform);
  cap.setCapability("deviceName", deviceName);

  //Real device need udid
  cap.setCapability("udid", IOSConfig.udid);
  cap.setCapability("bundleId", IOSConfig.bundleID);
  cap.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());

  iosDriver = new IOSDriver(new URL("http://127.0.0.1:" + port + "/wd/hub"), cap);
  iosDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

  return iosDriver;

}"

Please help me.

Thanks so much!

Hi @tran.minhnhut1986,

Do you have this device added to your provisioning profile?

yes, team ios said that they added this device. they builded file *.ipa on this device through xcode few times.

Also check Enable UI Automation is enabled on your device,
To check go to Settings -> Developer -> Enable UI Automation

this device have been enabled “Enable UI Automation”. and file *.ipa run manually very well on device

I try run my test on iPhone 4s version 8.3, it runs successfully. I have error may be because appium is not support version 9.3 ???

I ran tests on iOS 9.3, don’t know what is happening to your test

i use ruby version 2.0.0 and cocoaPods version 0.39.0, something wrong ?

What version of Xcode?

xcode version: Version 7.3.1 (7D1014), my mac osx version: 10.11.4

Go to XCode -> WIndows -> Devices
and check if you have 9.3.1 simulator installed, if not click the ‘+’ button in the bottom left corner,
And download simulator and SDKs for 9.3.1

Make sure you’ve updated the command line tools as well by opening a terminal and typing in:

xcode-select --install

I am facing the same issue on iOS 9.3.1 and Xcode 7.3.1 EI Captain, Let me know if you are able to resolve this.

1 Like

@wreed: this is result

xcode-select --install
xcode-select: error: command line tools are already installed, use “Software Update” to install updates

I don’t think error about this case