Hi priyank,
thanks for replying
This is what I get
192-168-1-238:bin uzmasyed$ ideviceinstaller
ERROR: No mode/command was supplied.
Usage: ideviceinstaller OPTIONS
Manage apps on iOS devices.
-u, --udid UDID Target specific device by its 40-digit device UDID.
-l, --list-apps List apps, possible options:
-o list_user - list user apps only (this is the default)
-o list_system - list system apps only
-o list_all - list all types of apps
-o xml - print full output as xml plist
-i, --install ARCHIVE Install app from package file specified by ARCHIVE.
ARCHIVE can also be a .ipcc file for carrier bundles.
-U, --uninstall APPID Uninstall app specified by APPID.
-g, --upgrade ARCHIVE Upgrade app from package file specified by ARCHIVE.
-L, --list-archives List archived applications, possible options:
-o xml - print full output as xml plist
-a, --archive APPID Archive app specified by APPID, possible options:
-o uninstall - uninstall the package after making an archive
-o app_only - archive application data only
-o docs_only - archive documents (user data) only
-o copy=PATH - copy the app archive to directory PATH when done
-o remove - only valid when copy=PATH is used: remove after copy
-r, --restore APPID Restore archived app specified by APPID
-R, --remove-archive APPID Remove app archive specified by APPID
-o, --options Pass additional options to the specified command.
-h, --help prints usage information
-d, --debug enable communication debugging
Okie, can u check with developer that ur ipa is debug app, this is because with ad-hoc sign identity they might have given u ipa in release mode. Which can’t work with appium. Now if you try with existing app, it will crash even though you have enabled developer options.
Hi I encounter the same problem.
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
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]. (/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 33363.010 ms - 182
I tried restart my appium app and xcode, but still encountered the same problem.
Could you please share with me how you did to resolve this issue?
The solution would be, try launching the application using xcode - automation tool (in the Open developer tools-> Instruments -> Automation) then try recoed some two to three steps. then quit from xcode. Now launch the application from the appium inspector. This would solve the problem.
This solution does not work. Still unable to launch the app with bundle exec arc
Selenium::WebDriver::Error::SessionNotCreatedError: Instruments crashed on startup
info: [IOS_SYSLOG_ROW ] May 13 12:05:40 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.app.iPhoneEnterprise[0x9814][398]) <Notice>: Service exited due to signal: Killed: 9
info: [IOS_SYSLOG_ROW ] May 13 12:05:40 iPhone SpringBoard[51] <Warning>: Application 'UIKitApplication:com.app.iPhoneEnterprise[0x9814]' exited abnormally via signal.
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.app.iPhoneEnterprise was denied. The app must be signed with a development identity (e.g. iOS Developer).
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] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] Killall iOS Simulator
error: Failed to start an Appium session, err was: Error: Instruments crashed on startup
info: [debug] On a real device; cannot clean device state
info: [debug] Cleaning up appium session
info: [debug] Error: Instruments crashed on startup
Calabash has a similar issue from time to time, but a general restart of everything resolves it. I’ve rebooted everything - Xcode, the Appium.app, the device, and my computer but still have the issue.
One question is in my mind, that when ever I set Ios settings from appium, then i click Launch button, it show some logs and then print Appium is listening on xxx port.
Means appium ran successfully.
But it does not install app on ios simulator ? Like previously I was doing for Android, and after launching it runs app on android emulator.
Instead it tries to install app when i click on Inspector button .
Am i missing some thing ?
for iOS automation from appium, can we access source code of iOS application ? Or we just use ipa, and gets its UI element (means we cannot test background data)?
I see a similar issue but slightly different. When I install the app on simulator via a script, the install goes through fine but the app keeps crashing. Manually if i try to open the app on simulator it crashes as well. The build i used were archived debug development build.
Can someone help me out here?
Error seen in logs:
…
…
Program specified by service does not contain one of the requested architectures: P
…
Error launching instruments: Instruments crashed on startup