Target failed to run Error: while trying to run application installed on device through Xcode - instrument

I am trying to test the installed app on IOS device through xcode.

Followed the below steps

1)Launch Xcode and open develper tools -> Instruments.

2)Click on Automation and connect your device. Search fo the Target app to be tested and click on record.

3)Xcode should launch the application.


but in my case I am getting below error.

Target failed to run: Permission to debug com.apple.itunesu was denied. The app must be signed with a development identity (e.g. iOS Developer).


Pls help me to solve the issue.

I am getting the same problem. I tryed setting my Scheme for profiling to use Debug instead of Release build. no change. read a few stackoverflow about it but can't find a working solution other then running it on a device (simulator does not wrok as I see it)

I had the same issue and it was to do with the system needing me to authorise the debugging with my keychain password. To get it to put up the keychain dialog I ran my app on the simulator so it was a running process. Then I went back to Instruments and selected my running app and pressed the record button. The keychain dialog appeared asking for permission to attach and I typed in my password. This allowed me to profile my app. The next time I profiled my app from XCode, permission was already established and saved and it now works as it did before.

Target failed to run Error: while trying to run application installed on device through Xcode - instrument
 
 
Q