Can't install app on real device (iOS 7.1.2)

Hello, All.

I am trying to run a appium test on a real iPhone device (7.1.2).

I have installed:
node (v0.10.33) via homebrew
Appium (v1.3.4 (REV 8fdcf8370deed16e9d221ef6e3b20430a9788e91)) from gitHub
a Mac OSX 10.9.5.
I am running XCode 6.1

IPA file created by Xcode and successfully installed on real device with iTunes.

But when I start appium server

node . --app /Users/crmobile/Desktop/cr-car-buyer.ipa -U auto -l --device-name “iPhone 5” --platform-version 7.1.2 --platform-name iOS --command-timeout 600 --launch-timeout 90000

I have error:
info: [debug] [INST STDERR] 2014-12-04 06:15:19.468 instruments[60981:1003] 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 org.consumerreports.CRCarBuyerCalculator was denied. The app must be signed with a development identity (e.g. iOS Developer).
info: [debug] [INSTSERVER] Instruments exited with code 253

full log:

I am at a loss… can you think of anything to try?

[ crmobile ~/automation_test/appium master ] :heavy_check_mark: /Applications/ -t /Applications/ -D /tmp/appium-instruments/instrumentscli0.trace -w 2c24332779d2d0cb6de4cd646603e2f3ddbd83f7 org.consumerreports.CRCarBuyerCalculator -e UIASCRIPT “/Users/crmobile/Library/Application Support/appium/bootstrap/bootstrap-65b416e55c5b7a7d.js” -e UIARESULTSPATH /tmp/appium-instruments

2014-12-04 06:49:38.254 instruments[63552:455f] WebKit Threading Violation - initial use of WebKit from a secondary thread.
Instruments Usage Error : Specified target process is invalid: org.consumerreports.CRCarBuyerCalculator
instruments, version 6.1 (56160)

I think your iPhone UDID is not added in the application. Please request to development team to add your UDID in applicatoin.

1 Like

I agree with Chirag, your UDID isn’t set up for the org. After this is fixed you have to go into Xcode preferences and pull it down from where ever Apple keeps them. I’d make sure you can get the code running on your device from Xcode first then make sure you don’t have instruments or Xcode connected to the device before you try again.

This was a pain the 1st, 2nd and 3rd times I got it to work.