在 XCode 首选项中刷新个人资料时出错

Error while refreshing profile in XCode preference

我试图在 itunesconnect 中上传我的应用程序,我正在执行以下步骤,

  1. 我设置了正确的 bundle-id
  2. 代码签名身份 - iOS 开发人员
  3. 配置文件 - 自动
  4. 在 Xcode 首选项中,单击 + 按钮下的 iOS 分布时,出现以下错误。

"Your account already has a valid iOS Distribution certificate" "If you have your signing identity on another Mac, you can import a developer profile. You can also revoke the current certificate and request one again."

苹果有很好的完整documentation

注册 Apple Developer Program 以及构建、测试和提交您的应用程序的分步指南。

您需要成为管理员或代理才能制作可分发的版本。

尝试以下操作:

  1. 从 Apple 会员中心下载所有您的证书配置文件,然后保存到您可以访问它们的地方。
  2. 双击 所有,应该会调出钥匙串以及 Xcode
  3. 在 Xcode 中,打开项目的构建设置,将 Developer 下的 Code Signing Identity 设置为您的开发者证书,并将相应的证书设置为 Distribution。
  4. 应该是这样,请检查 Xcode 的证书和配置文件首选项,以确保它们正确且有效。

希望对您有所帮助:)