When Executing Tests on RealDevice (iPhone 5) Instruments crashed on startup.
Any work around or fix is highly appreciated.We wanted to support IOS 8 apps and Im struck with this issue. Any help is highly appreciated.I checked similar issue in other posts tried but getting the same crash issue
- Platform : IOS
- Appium version : both (1.3.7 and 1.4)
- Device : iPhone 5 (IOS 8.3)
- OS : MAC 10.10.3
- Language : Java
- xCode : 6.3.2
Logs:
‘’'Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --command-timeout “60” --log “/tmp/appium.log” --log-timestamp --platform-version “7.0.1” --platform-name “iOS” --app “com.mirsoft.MyBank” --udid “a39937e0ea4b2b2f66c200d25ca9667b0456d153” --show-ios-log --default-device
2015-05-21 06:35:26:109 - info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)
2015-05-21 06:35:26:114 - info: Appium REST http interface listener started on 127.0.0.1:4723
2015-05-21 06:35:26:118 - info: [debug] Non-default server args: {“app”:“com.mirsoft.MyBank”,“udid”:“a39937e0ea4b2b2f66c200d25ca9667b0456d153”,“address”:“127.0.0.1”,“log”:"/tmp/appium.log",“logTimestamp”:true,“platformName”:“iOS”,“platformVersion”:“7.0.1”,“defaultDevice”:true,“showIOSLog”:true}
2015-05-21 06:35:26:119 - info: Console LogLevel: debug
2015-05-21 06:35:26:119 - info: File LogLevel: debug
2015-05-21 06:36:25:042 - info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/kkanumuri/Library/Developer/Xcode/DerivedData/UICatalog-eyehnmfbgzqrzlbhplgvfokfletb/Build/Products/Debug-iphoneos/UICatalog.app",“platformVersion”:“7.1”,“deviceName”:“iPhone 5”,“platformName”:“iOS”,“browserName”:"",“udid”:“25d53addb4b9d9ef2fe00d57dd10f76402636564”}}
2015-05-21 06:36:25:044 - info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
2015-05-21 06:36:25:048 - info: [debug] Using local app from desired caps: /Users/kkanumuri/Library/Developer/Xcode/DerivedData/UICatalog-eyehnmfbgzqrzlbhplgvfokfletb/Build/Products/Debug-iphoneos/UICatalog.app
2015-05-21 06:36:25:050 - info: [debug] Creating new appium session 066b3211-3b1c-42b6-b38b-70b0b51132c1
2015-05-21 06:36:25:053 - info: [debug] Removing any remaining instruments sockets
2015-05-21 06:36:25:054 - info: [debug] Cleaned up instruments socket /tmp/instruments_sock
2015-05-21 06:36:25:054 - info: [debug] Setting Xcode folder
2015-05-21 06:36:25:071 - info: [debug] Setting Xcode version
2015-05-21 06:36:25:090 - info: [debug] Setting iOS SDK Version
2015-05-21 06:36:25:110 - info: [debug] Getting sdk version from xcrun with a timeout
2015-05-21 06:36:25:117 - info: [debug] iOS SDK Version set to 8.3
2015-05-21 06:36:25:118 - info: [debug] Not checking whether simulator is available since we’re on a real device
2015-05-21 06:36:25:119 - info: [debug] Detecting automation tracetemplate
2015-05-21 06:36:25:129 - info: [debug] Not auto-detecting udid, running on sim
2015-05-21 06:36:25:135 - info: [debug] Parsed app Info.plist (as binary)
2015-05-21 06:36:25:136 - info: [debug] Parsed app Localizable.strings
2015-05-21 06:36:25:136 - info: [debug] Getting bundle ID from app
2015-05-21 06:36:25:139 - info: [debug] Parsed app Info.plist (as binary)
2015-05-21 06:36:25:139 - info: [debug] Creating instruments
2015-05-21 06:36:25:140 - info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
2015-05-21 06:36:25:140 - info: [debug] Preparing uiauto bootstrap
2015-05-21 06:36:25:140 - info: [debug] Dynamic bootstrap dir: /Users/kkanumuri/Library/Application Support/appium/bootstrap
2015-05-21 06:36:25:141 - info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
2015-05-21 06:36:25:193 - info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
2015-05-21 06:36:25:193 - info: [debug] Dynamic bootstrap path: /Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
2015-05-21 06:36:25:208 - info: [debug] Reusing dynamic bootstrap: /Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
2015-05-21 06:36:25:208 - info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:“iPhone 5”,“platformVersion”:“7.1”}
2015-05-21 06:36:25:209 - info: [debug] fixDevice is on
2015-05-21 06:36:25:209 - info: [debug] Final device string is: ‘iPhone 5 (7.1 Simulator)’
2015-05-21 06:36:25:210 - info: [debug] Not setting device type since we’re on a real device
2015-05-21 06:36:25:210 - info: [debug] Checking whether we need to set app preferences
2015-05-21 06:36:25:210 - info: [debug] Not setting iOS and app preferences since we’re on a real device
2015-05-21 06:36:25:210 - info: [debug] Running ios sim reset flow
2015-05-21 06:36:25:211 - info: [debug] Killing the simulator process
2015-05-21 06:36:25:211 - info: [debug] Killall iOS Simulator
2015-05-21 06:36:25:213 - info: [debug] Killing any other simulator daemons
2015-05-21 06:36:25:239 - info: [debug] On a real device; cannot clean device state
2015-05-21 06:36:25:239 - info: [debug] Not setting locale because we’re using a real device
2015-05-21 06:36:25:239 - info: [debug] No iOS / app preferences to set
2015-05-21 06:36:25:240 - info: [debug] Starting iOS device log capture via deviceconsole
2015-05-21 06:36:26:532 - info: [debug] Not pre-launching simulator
2015-05-21 06:36:26:533 - info: [debug] Creating iDevice object with udid 25d53addb4b9d9ef2fe00d57dd10f76402636564
2015-05-21 06:36:26:534 - info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 25d53addb4b9d9ef2fe00d57dd10f76402636564 --bundle com.example.apple-samplecode.UICatalog
2015-05-21 06:36:27:095 - info: [debug] App is installed.
2015-05-21 06:36:27:096 - info: [debug] fullReset not requested. No need to install.
2015-05-21 06:36:27:096 - info: [debug] Starting command proxy.
2015-05-21 06:36:27:098 - info: [debug] Instruments socket server started at /tmp/instruments_sock
2015-05-21 06:36:27:098 - info: [debug] Starting instruments
2015-05-21 06:36:27:106 - info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
2015-05-21 06:36:27:106 - info: Launching instruments
2015-05-21 06:36:27:108 - info: [debug] Attempting to run app on real device with UDID 25d53addb4b9d9ef2fe00d57dd10f76402636564
2015-05-21 06:36:27:109 - info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w 25d53addb4b9d9ef2fe00d57dd10f76402636564 com.example.apple-samplecode.UICatalog -e UIASCRIPT “/Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
2015-05-21 06:36:27:109 - info: [debug] And extra without-delay env: {}
2015-05-21 06:36:27:109 - info: [debug] And launch timeouts (in ms): {“global”:90000}
2015-05-21 06:36:27:850 - info: [debug] [INST STDERR] 2015-05-21 12:06:27.850 instruments[36946:83920] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-05-21 06:36:29:299 - info: [debug] [INST STDERR] 2015-05-21 12:06:29.299 instruments[36946:83955] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
2015-05-21 06:36:29:307 - info: [debug] [INST] 2015-05-21 06:36:29 +0000 Fail: An error occurred while trying to run the script.
2015-05-21 06:36:29:844 - info: [debug] [INST] Instruments Trace Complete (Duration : 1.442363s; Output : /tmp/appium-instruments/instrumentscli0.trace)
2015-05-21 06:36:29:934 - info: [debug] [INSTSERVER] Instruments exited with code 0
2015-05-21 06:36:29:935 - info: [debug] Killall instruments
2015-05-21 06:36:29:939 - info:
2015-05-21 06:36:29:943 - info: [debug] Attempting to retry launching instruments, this is retry #1
2015-05-21 06:36:29:944 - info: [debug] Killall iOS Simulator
2015-05-21 06:36:33:629 - info: --> GET /wd/hub/status {}
2015-05-21 06:36:33:630 - info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“066b3211-3b1c-42b6-b38b-70b0b51132c1”}
2015-05-21 06:36:33:636 - info: <-- GET /wd/hub/status 200 7.646 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“066b3211-3b1c-42b6-b38b-70b0b51132c1”}
2015-05-21 06:36:34:949 - info: Launching instruments
2015-05-21 06:36:34:957 - info: [debug] Attempting to run app on real device with UDID 25d53addb4b9d9ef2fe00d57dd10f76402636564
2015-05-21 06:36:34:958 - info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w 25d53addb4b9d9ef2fe00d57dd10f76402636564 com.example.apple-samplecode.UICatalog -e UIASCRIPT “/Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
2015-05-21 06:36:34:958 - info: [debug] And extra without-delay env: {}
2015-05-21 06:36:34:958 - info: [debug] And launch timeouts (in ms): {“global”:90000}
2015-05-21 06:36:35:637 - info: [debug] [INST STDERR] 2015-05-21 12:06:35.637 instruments[36950:84013] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-05-21 06:36:37:243 - info: [debug] [INST STDERR] 2015-05-21 12:06:37.242 instruments[36950:84009] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
2015-05-21 06:36:37:480 - info: [debug] [INST] 2015-05-21 06:36:37 +0000 Fail: An error occurred while trying to run the script.
2015-05-21 06:36:38:785 - info: [debug] [INST] Instruments Trace Complete (Duration : 2.631670s; Output : /tmp/appium-instruments/instrumentscli0.trace)
2015-05-21 06:36:38:865 - info: [debug] [INSTSERVER] Instruments exited with code 0
2015-05-21 06:36:38:866 - info: [debug] Killall instruments
2015-05-21 06:36:38:870 - info: [debug] Instruments crashed on startup
2015-05-21 06:36:38:871 - info: [debug] Attempting to retry launching instruments, this is retry #2
2015-05-21 06:36:38:871 - info: [debug] Killall iOS Simulator
2015-05-21 06:36:43:879 - info: Launching instruments
2015-05-21 06:36:43:887 - info: [debug] Attempting to run app on real device with UDID 25d53addb4b9d9ef2fe00d57dd10f76402636564
2015-05-21 06:36:43:888 - info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w 25d53addb4b9d9ef2fe00d57dd10f76402636564 com.example.apple-samplecode.UICatalog -e UIASCRIPT “/Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
2015-05-21 06:36:43:888 - info: [debug] And extra without-delay env: {}
2015-05-21 06:36:43:889 - info: [debug] And launch timeouts (in ms): {“global”:90000}
2015-05-21 06:36:44:583 - info: [debug] [INST STDERR] 2015-05-21 12:06:44.582 instruments[36954:84079] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2015-05-21 06:36:45:996 - info: [debug] [INST STDERR] 2015-05-21 12:06:45.996 instruments[36954:84069]
Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
2015-05-21 06:36:46:008 - info: [debug] [INST] 2015-05-21 06:36:45 +0000 Fail: An error occurred while trying to run the script.
2015-05-21 06:36:46:576 - info: [debug] [INST] Instruments Trace Complete (Duration : 1.445234s; Output : /tmp/appium-instruments/instrumentscli0.trace)
2015-05-21 06:36:46:649 - info: [debug] [INSTSERVER] Instruments exited with code 0
2015-05-21 06:36:46:649 - info: [debug] Killall instruments
2015-05-21 06:36:46:653 - info: [debug] Instruments crashed on startup
**2015-05-21 06:36:46:654 - info: [debug] Attempting to retry launching instruments, this is retry #3
2015-05-21 06:36:46:671 - info: [debug] Killall iOS Simulator
2015-05-21 06:36:51:679 - info: Launching instruments
2015-05-21 06:36:51:687 - info: [debug] Attempting to run app on real device with UDID 25d53addb4b9d9ef2fe00d57dd10f76402636564
2015-05-21 06:36:51:687 - info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w 25d53addb4b9d9ef2fe00d57dd10f76402636564 com.example.apple-samplecode.UICatalog -e UIASCRIPT “/Users/kkanumuri/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
2015-05-21 06:36:51:688 - info: [debug] And extra without-delay env: {}
2015-05-21 06:36:51:688 - info: [debug] And launch timeouts (in ms): {“global”:90000}
2015-05-21 06:36:52:394 - info: [debug] [INST STDERR] 2015-05-21 12:06:52.394 instruments[36959:84123] WebKit Threading Violation - initial use of WebKit from a secondary thread.’’’