ios 使用免费配置文件构建时出现 Xcode 7 错误“未找到代码签名身份”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33132749/
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-08-31 07:59:24  来源:igfitidea点击:

Xcode 7 Error "no code signing identities found" When Build Using Free Provisioning Profile

iosxcode

提问by Alex

Recently i'm trying to sideload xcode 7 app to my iphone. But I always got this error: https://drive.google.com/file/d/0B0B4cWQXc78eSUFLakJkZ1N1THc/view

最近我正在尝试将 xcode 7 应用程序旁加载到我的 iPhone。但我总是收到这个错误:https: //drive.google.com/file/d/0B0B4cWQXc78eSUFLakJkZ1N1THc/view

When i click that 'Fix issue' button I got popup like this: https://drive.google.com/file/d/0B0B4cWQXc78eaHhnendJVUVkWVU/view

当我点击“修复问题”按钮时,我会弹出这样的窗口:https: //drive.google.com/file/d/0B0B4cWQXc78eaHhnendJVUVkWVU/view

This is a new fresh project and never signed on another mac, so I dont have that "developer certificate" and i'm using Free Provisioning Profile. I click that reset button but that popup always come again. I hope someone can help me to solve this problem -_- Sorry for my English and my reputation is 1 so I can't post an image.

这是一个全新的项目,从未在另一台 mac 上签名,所以我没有那个“开发人员证书”,我使用的是免费配置文件。我点击了那个重置按钮,但那个弹出窗口总是会再次出现。我希望有人能帮我解决这个问题-_- 对不起我的英语,我的声誉是 1,所以我不能张贴图片。

Regards, Alex

问候,亚历克斯

回答by Davide

After Stackoverflowing... for hours, clean rebuild derived data ecc... I found the solution "Moving to trash" the provisioning profile I already have and downloading again, but first I repeat DELETE IT!

在 Stackoverflowing 之后......几个小时,清理重建派生数据 ecc......我找到了解决方案“移动到垃圾桶”我已经拥有的配置文件并再次下载,但首先我重复删除它!

How to delete Provisioning Profile

如何删除配置文件

回答by Anshad Rasheed

import your developer certificate and add it into keychain check Exporting and Importing Certificates and Profiles help and apples troubleshooting page

导入您的开发人员证书并将其添加到钥匙串检查导出和导入证书和配置文件帮助苹果故障排除页面

apple documentaion says

苹果文档说

If the certificate already exists in Member Center, a “Your account already has a valid certificate” dialog appears. Typically, this happens when you move from one Mac to another. If possible, export your certificates as a developer profile file on the other Mac, and then import them on your new Mac, as described in Exporting and Importing Certificates and Profiles. If you don't have a backup of your developer profile, click the “Revoke and Request” button when the “Your account already has a valid certificate” dialog appears.

如果会员中心中已存在该证书,则会出现“您的帐户已有有效证书”对话框。通常,当您从一台 Mac 移动到另一台 Mac 时会发生这种情况。如果可能,请在另一台 Mac 上将您的证书导出为开发人员配置文件,然后在您的新 Mac 上导入它们,如导出和导入证书和配置文件中所述。如果您没有开发者配置文件的备份,请在出现“您的帐户已有有效证书”对话框时单击“撤销和请求”按钮。

回答by Amit Ajmera

This can be happened due to several reasons and can be solved by one of the below solution:

发生这种情况的原因有多种,可以通过以下解决方案之一解决:

  1. Try Quiting Xcode and Reopen it.

  2. Install Provisioning profile again in Xcode.

  3. Download iOS Development/Distribution certificates from your developer account and install it in keychain.

  4. Open Xcode Preference and Signin to your developer account again.

  1. 尝试退出 Xcode 并重新打开它。

  2. 在 Xcode 中再次安装 Provisioning 配置文件。

  3. 从您的开发者帐户下载 iOS 开发/分发证书并将其安装在钥匙串中。

  4. 再次打开 Xcode Preference 并登录到您的开发者帐户。

Hope any of these solution may work!!

希望这些解决方案中的任何一个都可以奏效!!