# App is not launching on Real iOS device from Appium app

**URL:** <https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174>\
**Category:** Support\
**Created:** [March 4, 2015, 11:44am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174 "2015-03-04T11:44:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuvarajManickam](https://discuss.appium.io/letter_avatar_proxy/v4/letter/y/ad7895/32.png) [@YuvarajManickam](https://discuss.appium.io/u/YuvarajManickam)\
**Post date:** [March 4, 2015, 11:44am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/1 "2015-03-04T11:44:04Z")

</div>

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,

1. I have added the Bundle id of my application (iOS settings under Apple icon of Appium)
2. I have added the UDID of my iPhone 5S device (iOS settings under Apple icon of Appium)
3. 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.

---

<div class="post-metadata">

**Author:** ![shermaneric](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shermaneric](https://discuss.appium.io/u/shermaneric)\
**Post date:** [March 4, 2015, 5:38pm UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/2 "2015-03-04T17:38:54Z")

</div>

Hey there,  
Make sure your device has connected at least once to Xcode. Then in your device settings look for the developer option. Click on that and make sure that ui automation is enabled. Just a hunch

---

<div class="post-metadata">

**Author:** ![AmarnathRayudu](https://discuss.appium.io/user_avatar/discuss.appium.io/amarnathrayudu/32/3340_2.png) [@AmarnathRayudu](https://discuss.appium.io/u/AmarnathRayudu)\
**Post date:** [March 4, 2015, 6:49pm UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/3 "2015-03-04T18:49:48Z")

</div>

Hi @Ag

Please try to install the app from xcode once, and as @shermaneric mentioned check your developer settings  
on device.

Thanks,  
Amarnath Rayudu

---

<div class="post-metadata">

**Author:** ![mummana](https://discuss.appium.io/letter_avatar_proxy/v4/letter/m/958977/32.png) [@mummana](https://discuss.appium.io/u/mummana)\
**Post date:** [March 5, 2015, 8:21am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/4 "2015-03-05T08:21:13Z")

</div>

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).

the above says that the application you are using is not signed with developer certificate simple

---

<div class="post-metadata">

**Author:** ![YuvarajManickam](https://discuss.appium.io/letter_avatar_proxy/v4/letter/y/ad7895/32.png) [@YuvarajManickam](https://discuss.appium.io/u/YuvarajManickam)\
**Post date:** [March 5, 2015, 9:05am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/5 "2015-03-05T09:05:25Z")

</div>

Hi Shermaneric,

Thank you for your reply. It is working fine. Thanks again.

---

<div class="post-metadata">

**Author:** ![YuvarajManickam](https://discuss.appium.io/letter_avatar_proxy/v4/letter/y/ad7895/32.png) [@YuvarajManickam](https://discuss.appium.io/u/YuvarajManickam)\
**Post date:** [March 5, 2015, 9:06am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/6 "2015-03-05T09:06:03Z")

</div>

Hi All,

Thanks for all of your help. Thanks.

---

<div class="post-metadata">

**Author:** ![iFeng](https://discuss.appium.io/letter_avatar_proxy/v4/letter/i/b5e925/32.png) [@iFeng](https://discuss.appium.io/u/iFeng)\
**Post date:** [October 15, 2015, 12:54am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/7 "2015-10-15T00:54:35Z")

</div>

Hi YuvarajManickam,

Would you like to tell us how to fix this issue?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Jaya\_Gautam](https://discuss.appium.io/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@Jaya\_Gautam](https://discuss.appium.io/u/Jaya_Gautam)\
**Post date:** [March 4, 2016, 8:11am UTC](https://discuss.appium.io/t/app-is-not-launching-on-real-ios-device-from-appium-app/3174/8 "2016-03-04T08:11:04Z")

</div>

Hi YuvarajManickram,

Actually i am facing the same issue. Please can you help me.

Thanks
