George
George

Reputation: 30481

Provisioning Profile causing "iPhone has denied the launch request."

The Error

You may have seen a question on the cause of this error before:

iPhone has denied the launch request.

Cannot launch app

The error occurs for any Xcode project, so the problem is not related to the project itself.

This is different, and I do not want to use some workaround.

Attempt to solve my problem

I went in my Keychain as it has been a year since I signed up for my Provisional Developer Certificate, which has now expired, so I deleted it:

Keychain - deleting certificate

Quitting Xcode and removing Signing temporarily did not work still.

I then tried to renew the certificate by going to this link on the Apple Developer website, but I got an error:

Error when trying to get certificate

When I click on some pages on the website, I normally have to log in again, but I didn't need to but got the error above.

What can I do?

I am aware that I need a new certificate, even though it still shows I have an iPhone certificate:

Keychain - shows another certificate

What am I able to do so I can launch my project?

Here are my Signing settings:

Provisioning Profile


The Temporary Solution is to disable Debug Executable. However, this means that you cannot get debug logs, which is very important.


As I have heard recently, this appears to be a common bug right now. Many people are experiencing the same issues.

Upvotes: 2

Views: 1763

Answers (3)

chainsawsalad
chainsawsalad

Reputation: 136

I was experiencing this issue for the past week, and today it seems Apple has resolved it.

The .mobileprovision file now has the get-task-allow property set to true, and it's working for me again. I performed the following steps, and everything now seems back to normal:

  1. Uncheck the Automatically manage signing option in the General tab of target settings
  2. Exit Xcode
  3. Delete *.mobileprovision files under ~/Library/MobileDevice/Provisioning Profiles/
  4. Delete the following certificates in Keychain Access:
    • iPhone Developer: xxx@xxx.xxx (xxxxxxxxx)
    • Developer ID Certification Authority
    • Apple Worldwide Developer Relations Certification Authority
  5. Re-launch Xcode and reenable Automatically manage signing

I don't need to utilize any of the workarounds that have been floating around. Debug executable is on in my scheme and Ask on Launch is not selected.

Upvotes: 2

Hitesh Surani
Hitesh Surani

Reputation: 13577

I have faced the same issue earlier.

You can fix an issue by enabling two-factor authentication if you are the independent developer.

Enrolling as an Individual

If you are an individual or sole proprietor/single person business, get started by signing in with your Apple ID with two-factor authentication turned on. You’ll need to provide basic personal information, including your legal name and address.

Enrolling as an Organization

If you’re enrolling your organization, you’ll need an Apple ID with two-factor authentication turned on, as well as the following to get started: A D-U-N-S® Number

Your organization must have a D-U-N-S Number so that we can verify your organization’s identity and legal entity status. These unique nine-digit numbers are assigned by Dun & Bradstreet and are widely used as standard business identifiers. You can check to see if your organization already has a D-U-N-S Number and request one if necessary. They are free in most jurisdictions. Learn more Legal Entity Status

Your organization must be a legal entity so that it can enter into contracts with Apple. We do not accept DBAs, fictitious businesses, trade names, or branches. Legal Binding Authority

As the person enrolling your organization in the Apple Developer Program, you must have the legal authority to bind your organization to legal agreements. You must be the organization’s owner/founder, executive team member, senior project lead, or have legal authority granted to you by a senior employee. A Website

Your organization’s website must be publicly available and the domain name must be associated with your organization.

Reference: https://developer.apple.com/programs/enroll/

You can start enrollment by using the below reference: Start Your Enrollment if pending

After complete enrollment process successfully then download new certificate if required or go with automatically manage signing.

Enrollment Support

Thanks

Upvotes: 0

Faiz Fareed
Faiz Fareed

Reputation: 1548

It may be code sign issue. Make sure you're signing with developer, not distribution. still if it does not works, still there are two solutions.

  • Solution 1: open System Prefrences -> Users & Groups -> Add a user account (build with new user is successfully

  • Solution 2: open Keychain Access -> choose System, All Items -> delete certificate Apple Worldwide Developer Relations Certification Authority

Upvotes: 0

Related Questions