5

I was trying to run my app on my iphone to test it, but got this error:

error: failed to launch '/private/var/containers/Bundle/Application/some numbers/app name.app' -- iPhone name has denied the launch request.

I found some ways to solve this problem but they did't work I tried to:

  • reinstall the app
  • recreate the Provisioning Profile file
  • delete the Developer Certificate from Keys so that it will recreate certificate
  • reinstall the Xcode
  • Setting 'Apple Worldwide Developer Relations Certification Authority' trust mode from 'Always trust' to 'System defaults'.

The only way to run the app on iPhone is to disable "debug executable" in scheme, but that is not the best solution because I can't use debugger, maybe there is better solution for this problem?

Qbyte
  • 12,753
  • 4
  • 41
  • 57
savmex
  • 311
  • 1
  • 4
  • 8
  • are you sure you are not signing with a distribution certificate? – Sulthan Mar 17 '19 at 11:24
  • @Sulthan how I can check that? – savmex Mar 17 '19 at 11:25
  • Signing Certificate Iphone Developer: *email*(some letters and numbers) – savmex Mar 17 '19 at 11:35
  • 1
    Got exactly the same problem here since yesterday, haven't figured out why this happened... – J. Doe Mar 17 '19 at 12:47
  • 1
    I have exactly the same problem since Apple did something wrong with their automatic code signing (see also this related question https://stackoverflow.com/questions/55132628/provisioning-profile-doesnt-include-the-application-identifier-and-keychain-acc). – Qbyte Mar 17 '19 at 21:04
  • I have the following scenario: I connect my device to my Mac, open the "Console.app" and set filter by "Errors and Faults". Now, if I want to run the app I see the following message in the console: `SpringBoard [bundleidentifier] Provision violated for watchdog process-exit: ; violated: YES> SpringBoard Not terminating [bundleidentifier] for violated provision because: "process is being debugged"`. In order to find this message quickly search for your bundle-identifier. – Qbyte Mar 17 '19 at 21:11
  • Hello everyone, I've created a StackOverflow room to chat about the "iPhone has denied launch request" issue: https://chat.stackoverflow.com/rooms/190218/iphone-has-denied-the-launch-request-issue – Qbyte Mar 17 '19 at 21:55
  • Every free account seems to have this problem right now. My friends experience the same issue. – Appyx Mar 19 '19 at 13:37

1 Answers1

3

If you have a free developer account, here is the solution:

Xcode -> preferences -> manage certificates -> bottom plus sign -> iOS Development -> donwload manual certificates.

Under general, go to signing -> change team to none then go back to your development account.

sfung3
  • 2,227
  • 1
  • 9
  • 30