Instruments Usage Error : Unknown device specified

Hello,

I am having difficulties running appium test in iphone 5 IOS 8, xcode 6.1. Using appium 1.5. However, it works in iphone 6
Can someone suggest what am i doing wrong?

Just to add - it works in my machine but have got this error in another machine.
Here is the logs

2016-05-20 15:37:06:826 - info: [Appium] Welcome to Appium v1.5.2 (REV 7415ec270371c43e817c5c6f6c0da391bdec3c7e)
2016-05-20 15:37:06:829 - info: [Appium] Non-default server args:
2016-05-20 15:37:06:831 - info: [Appium] log: ‘/Users/xxx/build-dir/CIA-ADSI-ART/appium.log’
2016-05-20 15:37:06:909 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2016-05-20 15:37:08:906 - info: [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“deviceName”:"=xxx’s iPhone",“platformVersion”:“8.1.2”,“udid”:“555433a8a01f0c0ca10edc1bd31906d7e421082b”,“bundleId”:“com.test.appid.test.dev”,“app”:"/Users/xxx/bamboo-agent-home/xml-data/build-dir/CIA-ADSI-ART/build/test.ipa"}}
2016-05-20 15:37:08:910 - info: [MJSONWP] Calling AppiumDriver.createSession() with args: [{“platformName”:“iOS”,“deviceName”:"=Dan Mac Hale’s iPhone",“platformVersion”:“8.1.2”,“udid”:“555433a8a01f0c0ca10edc1bd31906d7e421082b”,“bundleId”…
2016-05-20 15:37:08:914 - info: [Appium] Creating new IosDriver session
2016-05-20 15:37:08:914 - info: [Appium] Capabilities:
2016-05-20 15:37:08:916 - info: [Appium] platformName: ‘iOS’
2016-05-20 15:37:08:917 - info: [Appium] deviceName: ‘=Dan Mac Hale’s iPhone’
2016-05-20 15:37:08:917 - info: [Appium] platformVersion: ‘8.1.2’
2016-05-20 15:37:08:918 - info: [Appium] udid: ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:37:08:918 - info: [Appium] bundleId: ‘com.test.appid.test.dev’
2016-05-20 15:37:08:919 - info: [Appium] app: ‘/Users/xxx/bamboo-agent-home/xml-data/build-dir/CIA-ADSI-ART/build/test.ipa’
2016-05-20 15:37:08:931 - info: [BaseDriver] Session created with session id: 2b11452e-59b4-4cf3-a1d1-764cad5d81b3
2016-05-20 15:37:08:933 - info: [debug] [iOS] Not auto-detecting udid.
2016-05-20 15:37:08:936 - info: [BaseDriver] Using local app ‘/Users/xxx/build-dir/CIA-ADSI-ART/build/test.ipa’
2016-05-20 15:37:08:936 - info: [debug] [BaseDriver] Copying local zip to tmp dir
2016-05-20 15:37:08:980 - info: [debug] [BaseDriver] Unzipping /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/2016420-40424-1lbghsw/appium-app.zip
2016-05-20 15:37:08:981 - info: [debug] [BaseDriver] Testing zip archive: /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/2016420-40424-1lbghsw/appium-app.zip
2016-05-20 15:37:09:338 - info: [BaseDriver] Unzipped local app to ‘/var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/2016420-40424-1lbghsw/Payload/test.app’
2016-05-20 15:37:09:339 - info: [debug] [iOS] Removing any remaining instruments sockets
2016-05-20 15:37:09:342 - info: [debug] [iOS] Cleaned up instruments socket /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/instruments_sock
2016-05-20 15:37:09:343 - info: [debug] [iOS] No language specified. Using default strings
2016-05-20 15:37:09:345 - info: [debug] [iOS] Strings file not found. Looking in ‘en.lproj’ directory
2016-05-20 15:37:09:357 - info: [debug] [iOS] Parsed app ‘Localizable.strings’
2016-05-20 15:37:09:358 - info: [debug] [iOS] Creating instruments
2016-05-20 15:37:09:359 - info: [debug] [UIAuto] Preparing bootstrap code
2016-05-20 15:37:09:360 - info: [debug] [UIAuto] Dynamic bootstrap dir: /Users/xxx/Library/Application Support/appium/bootstrap
2016-05-20 15:37:09:361 - info: [debug] [UIAuto] Dynamic env: {“nodePath”:"/usr/local/Cellar/node/5.1.1/bin/node",“commandProxyClientPath”:"/usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js",“instrumentsSock”:"/var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
2016-05-20 15:37:09:392 - info: [debug] [UIAuto] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
2016-05-20 15:37:09:393 - info: [debug] [UIAuto] Dynamic bootstrap path: /Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js
2016-05-20 15:37:09:397 - info: [debug] [UIAuto] Reusing dynamic bootstrap: /Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js
2016-05-20 15:37:09:400 - info: [debug] [iOS] Running ios real device reset flow
2016-05-20 15:37:09:403 - info: [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
2016-05-20 15:37:09:406 - info: [debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
2016-05-20 15:37:09:564 - info: [debug] [iOS] Creating iDevice object with udid 555433a8a01f0c0ca10edc1bd31906d7e421082b
2016-05-20 15:37:11:143 - info: [debug] [iOS] App is installed.
2016-05-20 15:37:11:144 - info: [debug] [iOS] fullReset not requested. No need to install.
2016-05-20 15:37:11:144 - info: [debug] [iOS] Starting UIAutoClient, and launching Instruments.
2016-05-20 15:37:11:163 - info: [debug] [UIAuto] Instruments socket server started at /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/instruments_sock
2016-05-20 15:37:11:208 - info: [debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2016-05-20 15:37:11:209 - info: [debug] [Instruments] Attempting to launch instruments, this is try #1
2016-05-20 15:37:11:210 - info: [Instruments] Launching instruments
2016-05-20 15:37:11:215 - info: [debug] [Instruments] Attempting to run app on real device with UDID ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:37:11:217 - info: [debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd6
2016-05-20 15:37:11:218 - info: [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/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments/instrumentscli0.trace -w 555433a8a01f0c0ca10edc1bd31906d7e421082b com.test.appid.test.dev -e UIASCRIPT “/Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js” -e UIARESULTSPATH /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments’
2016-05-20 15:37:11:219 - info: [debug] [Instruments] And extra without-delay env: {}
2016-05-20 15:37:11:219 - info: [debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
2016-05-20 15:37:31:829 - info: [debug] [Instruments] [INST STDERR] Instruments Usage Error : Unknown device specified: “555433a8a01f0c0ca10edc1bd31906d7e421082b”
2016-05-20 15:37:31:830 - info: [debug] [Instruments] [INST] Known Devices:
buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]
2016-05-20 15:37:31:843 - info: [debug] [Instruments] Instruments exited with code 255
2016-05-20 15:37:31:845 - error: [Instruments] Error launching instruments: Instruments crashed on startup
2016-05-20 15:37:36:855 - info: [debug] [Instruments] Attempting to launch instruments, this is try #2
2016-05-20 15:37:36:856 - info: [Instruments] Launching instruments
2016-05-20 15:37:36:864 - info: [debug] [Instruments] Attempting to run app on real device with UDID ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:37:36:866 - info: [debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd6
2016-05-20 15:37:36:867 - info: [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/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments/instrumentscli0.trace -w 555433a8a01f0c0ca10edc1bd31906d7e421082b com.test.appid.test.dev -e UIASCRIPT “/Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js” -e UIARESULTSPATH /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments’
2016-05-20 15:37:36:868 - info: [debug] [Instruments] And extra without-delay env: {}
2016-05-20 15:37:36:869 - info: [debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
2016-05-20 15:38:07:397 - info: [debug] [Instruments] [INST STDERR] Instruments Usage Error : Unknown device specified: “555433a8a01f0c0ca10edc1bd31906d7e421082b”
2016-05-20 15:38:07:397 - info: [debug] [Instruments] [INST] Known Devices:
buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]
2016-05-20 15:38:07:408 - info: [debug] [Instruments] Instruments exited with code 255
2016-05-20 15:38:07:410 - error: [Instruments] Error launching instruments: Instruments crashed on startup
2016-05-20 15:38:12:415 - info: [debug] [Instruments] Attempting to launch instruments, this is try #3
2016-05-20 15:38:12:417 - info: [Instruments] Launching instruments
2016-05-20 15:38:12:424 - info: [debug] [Instruments] Attempting to run app on real device with UDID ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:38:12:426 - info: [debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd6
2016-05-20 15:38:12:426 - info: [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/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments/instrumentscli0.trace -w 555433a8a01f0c0ca10edc1bd31906d7e421082b com.test.appid.test.dev -e UIASCRIPT “/Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js” -e UIARESULTSPATH /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments’
2016-05-20 15:38:12:427 - info: [debug] [Instruments] And extra without-delay env: {}
2016-05-20 15:38:12:427 - info: [debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
2016-05-20 15:38:42:948 - info: [debug] [Instruments] [INST STDERR] Instruments Usage Error : Unknown device specified: “555433a8a01f0c0ca10edc1bd31906d7e421082b”
2016-05-20 15:38:42:949 - info: [debug] [Instruments] [INST] Known Devices:
buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]
2016-05-20 15:38:42:959 - info: [debug] [Instruments] Instruments exited with code 255
2016-05-20 15:38:42:960 - error: [Instruments] Error launching instruments: Instruments crashed on startup
2016-05-20 15:38:47:969 - info: [debug] [Instruments] Attempting to launch instruments, this is try #4
2016-05-20 15:38:47:970 - info: [Instruments] Launching instruments
2016-05-20 15:38:47:974 - info: [debug] [Instruments] Attempting to run app on real device with UDID ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:38:47:975 - info: [debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd6
2016-05-20 15:38:47:976 - info: [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/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments/instrumentscli0.trace -w 555433a8a01f0c0ca10edc1bd31906d7e421082b com.test.appid.test.dev -e UIASCRIPT “/Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js” -e UIARESULTSPATH /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments’
2016-05-20 15:38:47:977 - info: [debug] [Instruments] And extra without-delay env: {}
2016-05-20 15:38:47:977 - info: [debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
2016-05-20 15:39:18:587 - info: [debug] [Instruments] [INST STDERR] Instruments Usage Error : Unknown device specified: “555433a8a01f0c0ca10edc1bd31906d7e421082b”
2016-05-20 15:39:18:588 - info: [debug] [Instruments] [INST] Known Devices:
buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]
2016-05-20 15:39:18:599 - info: [debug] [Instruments] Instruments exited with code 255
2016-05-20 15:39:18:600 - error: [Instruments] Error launching instruments: Instruments crashed on startup
2016-05-20 15:39:23:605 - info: [debug] [Instruments] Attempting to launch instruments, this is try #5
2016-05-20 15:39:23:606 - info: [Instruments] Launching instruments
2016-05-20 15:39:23:610 - info: [debug] [Instruments] Attempting to run app on real device with UDID ‘555433a8a01f0c0ca10edc1bd31906d7e421082b’
2016-05-20 15:39:23:612 - info: [debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd6
2016-05-20 15:39:23:613 - info: [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/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments/instrumentscli0.trace -w 555433a8a01f0c0ca10edc1bd31906d7e421082b com.test.appid.test.dev -e UIASCRIPT “/Users/xxx/Library/Application Support/appium/bootstrap/bootstrap-b47debe7effeebe4.js” -e UIARESULTSPATH /var/folders/q5/zl6g5gs52mngrxb18xnf0g100000gn/T/appium-instruments’
2016-05-20 15:39:23:614 - info: [debug] [Instruments] And extra without-delay env: {}
2016-05-20 15:39:23:614 - info: [debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
2016-05-20 15:39:54:172 - info: [debug] [Instruments] [INST STDERR] Instruments Usage Error : Unknown device specified: "555433a8a01f0c0ca10edc1bd31906d7e421082b"MN39
2016-05-20 15:39:54:173 - info: [debug] [Instruments] [INST] Known Devices:
buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]
2016-05-20 15:39:54:182 - info: [debug] [Instruments] Instruments exited with code 255
2016-05-20 15:39:54:183 - error: [Instruments] Error launching instruments: Instruments crashed on startup
2016-05-20 15:39:54:213 - error: [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:220: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/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at doNTCallback0 (node.js:430:9)
at process._tickCallback (node.js:359:13)
[Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch]
2016-05-20 15:39:54:216 - error: [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:220: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/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:104:47)
at /usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:115:28
at flush (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/node_modules/core-js/library/modules/$.microtask.js:19:5)
at doNTCallback0 (node.js:430:9)
at process._tickCallback (node.js:359:13)
2016-05-20 15:39:54:226 - info: [HTTP] <-- POST /wd/hub/session 500 165369 ms - 232

Instruments is only seeing Simulators on that machine (and OS X machine). You can tell because all of the UDID’s have hyphen’s (“-”) in them. Reasons for this could be:

  1. Device is not plugged in.
  2. Bad USB cable.
  3. Bad USB port.
  4. Bad Lightning port on device. <–or a bunch of junk crammed in there (like lint)
  5. OS X in bad state and needs reboot.

There could probably be other reasons but I think that will cover over 90+% of failure cases. The troubleshooting steps should be pretty obvious from that list. The next time you plug in the device, make sure it can show up in iTunes. If it shows up there then Instruments should be able to see it.

@wreed Thanks. I can safely say point 1-4 didn’t helped. I will try your suggestion to look for device in iTunes.

However, when I tried command instruments -s devices before my appium test run, it shows up but it disappears after appium started tests with instruments failed.

build 20-May-2016 17:59:27 Known Devices:
build 20-May-2016 17:59:27 buildbot-osx-03 [564D50A7-AAF9-75EB-5948-EB34F8259910]
build 20-May-2016 17:59:27 xxx’s iPhone (8.1.2) [109433a8a01f0c0ca10edc1bd31906d7e421082b]
build 20-May-2016 17:59:27 Resizable iPad (8.4 Simulator) [40E8E763-05AD-4552-A531-79DFB0B63B4C]
build 20-May-2016 17:59:27 Resizable iPhone (8.4 Simulator) [BBA23182-8E13-4C28-A880-25E3EBA9380A]
build 20-May-2016 17:59:27 iPad 2 (8.4 Simulator) [AF312E1B-FEDD-422D-ACD5-3B9FC45DD1FC]
build 20-May-2016 17:59:27 iPad Air (8.4 Simulator) [01D1CD61-4ECD-4D04-AE44-673CFC556B3D]
build 20-May-2016 17:59:27 iPad Retina (8.4 Simulator) [F2DAC057-CEA6-4F5F-A59C-9B0AAFBE24A3]
build 20-May-2016 17:59:27 iPhone 4s (8.4 Simulator) [1B012B4F-4C0B-452C-82F4-02FC192BC848]
build 20-May-2016 17:59:27 iPhone 5 (8.4 Simulator) [875E7089-89D1-40DA-8F3D-4D3B91DAA31C]
build 20-May-2016 17:59:27 iPhone 5s (8.4 Simulator) [5510CAA1-2D6F-460B-90CE-F669A15D8574]
build 20-May-2016 17:59:27 iPhone 6 (8.4 Simulator) [C6C3ADA2-4CCA-45FC-8040-3F74B4EB72FC]
build 20-May-2016 17:59:27 iPhone 6 Plus (8.4 Simulator) [D6FE7AFA-49BE-448D-9E92-FBF38FD7BC37]

I would argue that this does not invalidate my points 2, 3, or 4. An intermittent cable or port would exhibit this exact behavior.

You are genius mate. Restarting build machine did the trick. This issue is resolved now.

1 Like