Start Driver , Crashes with Appium server log, instruments crashed.
In the exception block we read the server logs and if we notice this issue , we would start Xcode through , apple script , which will enforce the Xcode/Instruments and wait for 15 seconds and quit it.
Then retry starting the driver, it should be good.
Iām facing the same issue interments crashes on startup. But Iām able to launch other application in simulator only one of my test applications is not opening on simulator.
@Shreyas, can you please let me know how it got resolved for you?
Check that ideviceinstaller works correct with command like this:
For example I run the command line success:
3. ideviceinstaller -u 2a6ec95b5891582549f379e72c08c857ebeb5169 -i /Users/admin/Projects/Ivan/slotomania.ng/Bin/IOS/SMIOS.app
My app was installed on the iPhone6 device.
Check that you device attached and detected by XCode instruments
instruments -s devices
Note: You have to use the device name form this list, it is pointed in appium documentation:
In Appium GUI app this is Device setting -> Force Device text edit box. In command line:
ādevice-name "IvanPhone6 (8.1.1) [6c6365447d1dfb636be7de6921f631b8a62a08ae]
As you can see the phone name are not the same as in iTunes for example (IvanPhone6). This was my issue when I tried to use short name with appium I had the instruments 253 crash.
The full command was like this:
Launching Appium with command: ā/usr/local/bin/nodeā lib/server/main.js --command-timeout ā7200ā --debug-log-spacing --platform-version ā8.1.1ā --platform-name āiOSā --app ā/Users/admin/Projects/Ivan/slotomania.ng/Bin/IOS/Slotomania.ipaā --udid ā6c6365447d1dfb636be7de6921f631b8a62a08aeā --show-ios-log --device-name āIvanPhone6 (8.1.1) [6c6365447d1dfb636be7de6921f631b8a62a08ae]ā
according to my experience, itās better to check again following stuffs: 1. in appium iOS Settings, your BundleID, ForceDevice, PlatformVersion & UDID are checked and correct 2. switching on UI Automation from Developer on iOS device. Hope it helps.
I faced the same issue, instruments crash with code 253, i ran on simulator not on real device, my application was built on xcode 6.1 from a different machine, Since I set appium environment I ran only sample UIcatalog provided in tutorials, none of my applications opened in simulator, I use Appium 1.4, platform version 7.1 and 8.1
Hi everybody.
I have same issue.
When appium tries to run application, the screen flashes with app splash screen, as if appium tries to launch app multiple times. This behaviour happens both on simulator and real device.
I set enable on my iOS devices UI Autimation, but when i try start inspector i have this problem:
info: [debug] [INST STDERR] 2015-11-05 15:11:05.082 instruments[1495:39489] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-11-05 15:11:06.049 instruments[1495:39460] Attempting to change event horizon while disengage
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] [INST STDERR] 2015-11-05 15:11:06.049 instruments[1495:39462] Attempting to change event horizon while disengage
Instruments Trace Error : Target failed to run: Permission to debug com.myapp.iphone was denied. The app must be signed with a development identity (e.g. iOS Developer).
info: [IOS_SYSLOG_ROW ] Nov 5 15:11:04 tests-iPod com.apple.xpc.launchd[1] (UIKitApplication:com.myapp.iphone[0xe163][607]) <Notice>: Service exited due to signal: Killed: 9
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: [debug] Error: Instruments crashed on startup
at [object Object].Instruments.onInstrumentsExit (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:440:31)
at [object Object].<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/submodules/appium-instruments/lib/instruments.js:353:12)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Instruments crashed on startup)","origValue":"Instruments crashed on startup"},"sessionId":null
info: <-- POST /wd/hub/session 500 33841.937 ms - 182}
+1 on your suggestion @wreed
Most of the time, our smoke test failed (with Instruments crash messages) due to incorrect profile used to sign the app.
Now we incorporate ā[ ]Correctly signed by dev certificateā as part of our QA-In checklist.
I have the same problem when I use an already developed application and the build is coming from a developer profile : I canāt open the inspector and i got this error in appium :āinstruments crash on startup.ā
But, when I create an new project with XCode then generate the app file, it is working fine I can open both inspector and recorder.