Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can debug app on device but cannot profile: the app must be signed with a development identity

I have custom schemes such as DebugStaging that are signed with a development identity.

I use these schemes to run the app on my phone from Xcode on debug. However, any attempt to profile using these schemes results in

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

What in the heck is going on and how do I rid Xcode of this evil??

Edit: We long ago deleted the Debug scheme to use more verbose scheme names.

like image 553
Awesome-o Avatar asked Nov 28 '22 16:11

Awesome-o


2 Answers

Go to the scheme for your target, Product -> Scheme -> Edit Scheme, then select 'Profile' from the left menu and set the Build Configuration to Debug.

like image 115
Mike Avatar answered Dec 05 '22 13:12

Mike


Deleting derived data worked.

In my case, no Debug build configuration existed because it was deleted and I am using completely custom configurations.

like image 33
Awesome-o Avatar answered Dec 05 '22 13:12

Awesome-o