Hi Team,
Good Day!
Am new to Appium server. I just want to know how to run the app in real iOS device from Appium app?. Right now am not using Appium for any UIAutomation or Test cases but, it may be gonna happen in near future.
I followed the below steps to run an app in my iPhone,
- I have added the Bundle id of my application (iOS settings under Apple icon of Appium)
- I have added the UDID of my iPhone 5S device (iOS settings under Apple icon of Appium)
- I enabled “Pre-lauch application” in General settings.
After that I run the server and it is trying to launch the app in my device but, it was failed. Here, I mentioned the log for your reference,
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxe
info: [debug] Spawning instruments with command: /Applications/Xcode_6.1.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode_6.1.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w dxxxxxxxxxxxxxxxxxxxxxxxxxxxe com.xxxx.xxxxxxne -e UIASCRIPT “/Users/xxxxxxxxxxxx/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:100000}
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:48 xxxxxxxx-iPhone locationd[56] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:48 xxxxxxxx-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:48 xxxxxxxx-iPhone lockdownd[63] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:48 xxxxxxxx-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:48 xxxxxxxx-iPhone lockdownd[63] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone lockdownd[63] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [debug] [INST STDERR] 2015-03-04 16:04:49.135 instruments[22828:739136] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone lockdownd[63] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone SpringBoard[49] : Entitlement com.apple.multitasking.termination required to kill applications.
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone kernel[0] : xpcproxy[867] Container: /private/var/mobile/Containers/Data/Application/1xxxx2C-2C04-xxxx-B19A-FCxxxxxx89 (sandbox)
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone locationd[56] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone DTMobileIS[180] : Unable to acquire task port after launch of pid 867 (com.xxxx.xxxxxxne)
info: [IOS_SYSLOG_ROW ] Mar 4 16:04:49 xxxxxxxx-iPhone SpringBoard[49] : Entitlement com.apple.multitasking.termination required to kill applications.
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.yelp.yelpiphone 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] Killall iOS Simulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Cleaning up appium session
error: Could not pre-launch appium: Error: Instruments crashed on startup
Environment:
Appium Version: 1.3.5 (Ophiuchus)
Device: iPhone 5S
iOS Version: 8.1.3
I don’t know what am doing wrongly. Can anyone please help me to solve this problem?
Thanks in advance.