4

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.

Awesome-o
  • 2,002
  • 1
  • 26
  • 38
  • possible duplicate of [Can't launch my app in Instruments: At least one target failed to launch](http://stackoverflow.com/questions/18905450/cant-launch-my-app-in-instruments-at-least-one-target-failed-to-launch) – bummi Jun 28 '15 at 08:07

2 Answers2

26

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.

Mike
  • 9,765
  • 5
  • 34
  • 59
  • There is no `Debug` option. `DebugStaging` is an option. Interestingly I can profile on our `DebugProduction` scheme with the `DebugProduction` build configuration. I'll try to investigate more into what the difference is here since there must be a deeper underlying reason the profiler works on one but not the other. – Awesome-o Aug 25 '14 at 18:11
  • What version of Xcode are you using? Can you provide a screenshot? – Mike Aug 25 '14 at 18:12
  • 1
    I deleted derived data and everything started working :shrug:. You'll have to take my word that no `Debug` option exists since this is a private codebase. – Awesome-o Aug 28 '14 at 23:53
  • I am using Xcode 6 and there us Debug option in Profile section. – Maziyar Nov 04 '14 at 11:20
  • Ya, but we removed that option in order to include more verbose options for our schemes. – Awesome-o Nov 12 '14 at 19:45
1

Deleting derived data worked.

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

Awesome-o
  • 2,002
  • 1
  • 26
  • 38