Facing Issue in launching & automating iOS native application on real devices

Hello,

We are facing issues in launching iOS native application on real device, whenever we try to launch the native app (contacts) on real device by passing bundle-Id in Appium it gives us instrumentation error.

Below are the system details and log for the reference:
iOS device : iphone 5 (version 8.5)
Mac System: 10.10.3
Xcode: 6.4
Appium Version:1.4.8

Logs:
[INST STDERR] 2015-08-07 21:21:44.882 instruments[3248:133525] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.apple.Preferences was denied. The app must be signed with a development identity (e.g. iOS Developer)

I am also facing the same issue.Do we have any solutions for this,can we launch settings app on a real IOS device?

Key error is here:

It means that the application you are trying to interact with wasn’t signed with development profile so that instruments cannot access it. It is typical case for release builds or binaries installed via App Store.

Hi All,

We’re still facing the issue - The app must be signed with a development identity even we’re done with provisioning profiles and mapping of UDID multiple times, but no luck.

We’ve followed he reference links for build process:

  1. http://dentedghost.blogspot.com/2015/06/appium-testers-perspective-for-ios_14.html
  2. https://youtu.be/Y52Z3kp6yQ8
  3. http://testdroid.com/tech/tips-and-tricks-how-to-build-ipa-for-testdroid-cloud-ios-devices.

Could you please help us on this if any other possible ways are there to pointing us to the right direction !!!

Thank you in advance,
Bhaskar V.

If you have all necessary provisioning profiles you should also enable UI Automation on the device. You should go to Settings > Developer and turn Enable UI Automation option on

Thanks for the reply @Nickolay_Kolesnik ,

I’ve done the same as you mentioned (Enable UI Automation). Still the problem persits.

Hope will get suggestions on this.

Regards,
Bhaskar.