Xcode 8.3.2 签名错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43719507/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:26:00  来源:igfitidea点击:

Xcode 8.3.2 signing errors

xcodeprovisioning-profilesigning

提问by brent

I have Xcode 8.3.2 on Sierra. I am trying to build an Enterprise .ipa (have Enterprise membership).

我在 Sierra 上有 Xcode 8.3.2。我正在尝试构建企业 .ipa(拥有企业会员资格)。

I am having issues signing my app. Specifically in Xcode I have the following under General\Signing:

我在签署我的应用程序时遇到问题。特别是在 Xcode 中,我在 General\Signing 下有以下内容:

  • Automatically manage signing is enabled
  • Team: "My Team (Enterprise)"
  • Provisioning Profile: Xcode Managed Profile
  • Signing Certificate: iOS Developer
  • Status
    • Failed to create provisioning profile "com.myapp" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
    • No profiles for 'com.myapp' were found. Xcode couldn't find a provisioning profile matching 'com.myapp'.
  • 启用自动管理签名
  • 团队:“我的团队(企业)”
  • 配置文件:Xcode 管理的配置文件
  • 签名证书:iOS 开发者
  • 地位
    • 未能创建配置文件“com.myapp”无法注册到您的开发团队。将您的捆绑标识符更改为唯一字符串以重试。
    • 未找到“com.myapp”的配置文件。Xcode 找不到与“com.myapp”匹配的配置文件。

My steps were:

我的步骤是:

  1. Logged into Enterprise account at https://developer.apple.com/account/
  2. Under Certificates, Identifiers, and Profiles I selected the Add
  3. Selected In-House and Ad Hoc
  4. On my MAC in the Keychain Access I selected KeyChain Access\Certificate Assistant\Request a Certificate from a Certificate Authority
  5. Saved to my desktop
  6. In https://developer.apple.com/account/I uploaded the certificate signing request
  7. I see it as a certificate as type iOS Distribution with and expiration date
  8. I download the .cer file and double click on it to install it
  9. Within Xcode\Preferences I find the Team under the Apple ID and under Manage Certificates I see iOS Distribution Certificates and Enterprise with today's date
  10. I select the Download All Profiles for that team
  11. In Xcode I select General\Signing and "My Team (Enterprise)
  1. https://developer.apple.com/account/登录企业帐户
  2. 在证书、标识符和配置文件下,我选择了添加
  3. 选定的内部和临时
  4. 在钥匙串访问的 MAC 上,我选择了钥匙串访问\证书助手\从证书颁发机构请求证书
  5. 保存到我的桌面
  6. https://developer.apple.com/account/我上传了证书签名请求
  7. 我将其视为 iOS Distribution 类型的证书,并具有到期日期
  8. 我下载 .cer 文件并双击它进行安装
  9. 在 Xcode\Preferences 中,我在 Apple ID 下找到 Team,在 Manage Certificates 下我看到 iOS Distribution Certificates 和 Enterprise 与今天的日期
  10. 我选择下载该团队的所有配置文件
  11. 在 Xcode 中,我选择 General\Signing 和“My Team (Enterprise)

At this point I get the two errors described above.

在这一点上,我得到了上面描述的两个错误。

I am new to Xcode development so I am sure there is something wrong with my steps.

我是 Xcode 开发的新手,所以我确定我的步骤有问题。

Any insight would be greatly appreciated.

任何见解将不胜感激。

回答by brent

Well the solution to my issue was to do the following:

好吧,我的问题的解决方案是执行以下操作:

  1. In Xcode under the "General" tab to disableAutomatically manage signing
  2. At https://developer.apple.com/accountin my enterprise account under provisioning profiles I created a new distribution profile
  3. Downloaded the profile => .mobileprovision file
  4. Double clicked on the .mobileprovision file
  5. With Automatically manage signingdisabled I then selected the Provisioning Profile I just created and downloaded in the drop downs for Signing (Debug) and Signing (Release)
  6. At this point I was able to archive and export an enterprise .ipa
  1. 在 Xcode 下的“ General”选项卡中禁用自动管理签名
  2. https://developer.apple.com/account在我的企业帐户中的配置文件下,我创建了一个新的分发配置文件
  3. 下载了配置文件 => .mobileprovision 文件
  4. 双击 .mobileprovision 文件
  5. 随着自动管理签署禁用然后我选择的供应简介我刚刚创建,并在下拉菜单下载的签名(调试)和签署(发布)
  6. 在这一点上,我能够存档和导出企业 .ipa

回答by Mr. Dang

This is the solution to my issue that's similar to this one:

这是我的问题的解决方案,类似于这个问题:

Change your bundle identifier to a unique string to try again.

将您的捆绑标识符更改为唯一字符串以重试。

  • Your bundle identifier is already in use by other developers I guess, so just change your bundle identifier in the Identify tabright above your Signing tabto another one:
  • For example: Bundle Identifier: org.react.native.example.RamenForLifeIn2022
  • 我猜您的包标识符已经被其他开发人员使用,所以只需将您的签名选项正上方的识别选项卡中的包标识符更改为另一个:
  • 例如:捆绑标识符:org.react.native.example.RamenForLifeIn2022

Hope this helps :)

希望这可以帮助 :)