配置文件导致 "iPhone has denied the launch request."

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

错误

您之前可能看到过关于此错误原因的问题:

iPhone has denied the launch request.

任何Xcode项目都会出现该错误,因此问题与项目本身无关。

这是不同的,我不想使用一些解决方法。

尝试解决我的问题

我参加了 Keychain,因为自从我注册我的 临时 开发人员证书已经一年了,现在 已过期,所以我删了:

暂时退出 Xcode 并删除 Signing 仍然无效。

然后我尝试通过转到 this link on the Apple Developer website 来更新证书,但出现错误:

当我点击网站上的某些页面时,我通常需要重新登录,但我不需要,但出现了上面的错误。

我能做什么?

我知道我需要一个新证书,尽管它仍然显示我有一个 iPhone 证书:

我该怎么做才能启动我的项目?

这是我的 Signing 设置:


Temporary Solution是禁用Debug Executable。但是,这意味着您无法获取调试日志,这一点非常重要。


我最近听说,这似乎是目前的一个常见错误。许多人遇到同样的问题。

可能是代码签名问题。确保您与开发人员而不是分销商签约。 还是不行,还是有两种解决方法。

  • 解决方案一:打开系统偏好设置->用户&群组->添加用户账户(新用户构建成功

  • 解决方案 2:打开钥匙串访问 -> 选择系统,所有项目 -> 删除证书 Apple Worldwide Developer Relations Certification Authority

我之前遇到过同样的问题。

如果您是独立开发者,您可以通过启用双因素身份验证来解决问题。

以个人身份注册

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.

注册为组织

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/

您可以使用以下参考资料开始报名: Start Your Enrollment if pending

成功完成注册过程后,根据需要下载新证书或使用自动管理签名。

Enrollment Support

谢谢

过去一周我一直遇到这个问题,今天 Apple 似乎已经解决了它。

.mobileprovision 文件现在将 get-task-allow 属性 设置为 true,它又对我有用了。我执行了以下步骤,现在一切似乎都恢复正常了:

  1. 在目标设置的 General 选项卡中取消选中 Automatically manage signing 选项
  2. 退出Xcode
  3. 删除 ~/Library/MobileDevice/Provisioning Profiles/
  4. 下的 *.mobileprovision 文件
  5. 删除钥匙串访问中的以下证书:
    • iPhone 开发者:xxx@xxx.xxx (xxxxxxxxx)
    • 开发者 ID 证书颁发机构
    • Apple 全球开发者关系认证机构
  6. 重新启动 Xcode 并重新启用 Automatically manage signing

我不需要使用任何已经出现的解决方法。 Debug executable 在我的方案中打开并且 Ask on Launch 未被选中。