ios 为什么我在 Xcode 6 中收到错误“无法定位或生成匹配的签名资产”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25862917/
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
Why am I getting an error "Failed to locate or generate matching signing assets" in Xcode 6?
提问by Logger
I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:
我安装了 Xcode 6 GM 种子,并且我第一次尝试创建一个 IPA 文件。存档成功后,当我单击“导出”按钮时,会出现一个窗口,内容为:
Failed to locate or generate matching signing assets
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues.
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.
未能找到或生成匹配的签名资产
Xcode 尝试定位或生成匹配的签名资产,但由于以下问题而失败。
您的帐户已有有效的 iOS 分发证书。
如果您在另一台 Mac 上拥有您的签名身份,则可以导入开发人员配置文件。您还可以撤销当前证书并再次申请。
Here's a screenshot of the error:
这是错误的屏幕截图:
Can anybody tell me how to solve this?
谁能告诉我如何解决这个问题?
回答by Anibal R.
In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.
在钥匙串访问中,-> 显示过期证书,然后在您的登录钥匙串中单击过期证书并将其删除。我的系统钥匙串中也有相同的过期证书,所以我也从那里删除了它。
-> After deleting the expired cert from the login and System keychains,download certificate from below link and open with keychain.
-> 从登录和系统钥匙串中删除过期的证书后,从下面的链接下载证书并用钥匙串打开。
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cerand add it to Keychain access > certificates (which expires on 2023)
下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer并将其添加到钥匙串访问 > 证书(2023 年到期)
this solved my problem
这解决了我的问题
回答by Nik Yekimov
I edited distribution profile and downloaded it again, restarted xcode and it worked.
我编辑了分发配置文件并再次下载了它,重新启动了 xcode 并且它工作了。
回答by Alix
I have been searching answer for this problem past 6 hours. Nothing is satisfactory. As no one knows why this is happening. Following is way to generate .ipa via command line. If that works I will update here tomorrow.
过去 6 个小时我一直在寻找这个问题的答案。没有什么是令人满意的。因为没有人知道为什么会发生这种情况。以下是通过命令行生成 .ipa 的方法。如果可行,我明天会在这里更新。
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "Provisioning Profile Name"
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "配置文件名称"
Note : The "Provisioning Profile Name" is the name specified in the name field of the certificate (viewable from developer.apple.com).
注意:“Provisioning Profile Name”是证书名称字段中指定的名称(可从 developer.apple.com 查看)。
This will create .ipa.
这将创建 .ipa。
credit goes to Orginal author here
归功于这里的原始作者
This trick worked for me.
这个技巧对我有用。
回答by Kendall Helmstetter Gelner
I got this error when having multiple development accounts/teams I was on. The solution for me was to make sure that all of the following were properly set up:
我在拥有多个开发帐户/团队时遇到此错误。我的解决方案是确保正确设置以下所有内容:
- I had a distribution certificate with private key for the account the app belonged to (if someone else has made the certificate you have to key the private key from them and install it).
- I had a specific (not wildcard) application ID (as in com.mycompany.myapp).
- I had a provisioning profile that was created using the distribution certificate mentioned above along with the AppID mentioned above.
- 我有一个带有应用程序所属帐户的私钥的分发证书(如果其他人制作了证书,您必须从他们那里输入私钥并安装它)。
- 我有一个特定的(非通配符)应用程序 ID(如 com.mycompany.myapp)。
- 我有一个使用上面提到的分发证书和上面提到的 AppID 创建的配置文件。
When all of that is in place, you can refresh your account in Xcode and you should not get that message anymore...
当所有这些都到位后,您可以在 Xcode 中刷新您的帐户,并且您不应再收到该消息...
回答by TooManyEduardos
I got the same thing the first time, and then I realized that in the dev site there was a new provisioning profile that started with XC: I restarted xcode and xcode automatically found the XC: profile it created earlier and allowed me to sign the app. It looked as if the restart of xcode and refresh of signatures (after signing in while uploading/verifying the app on xcode) did the trick
我第一次得到同样的东西,然后我意识到在开发站点中有一个以 XC 开头的新配置文件:我重新启动了 xcode,xcode 自动找到了它之前创建的 XC: 配置文件并允许我签署应用程序. 看起来好像 xcode 的重新启动和签名的刷新(在 xcode 上上传/验证应用程序时登录后)起到了作用
回答by Vijay Parchani
This must be an issue with the team you have selected. If you have created a new bundle id from some other apple account which is not added in your xcode
preferences follow the below steps to add new team.
这一定是您选择的团队的问题。如果您从某个其他苹果帐户创建了一个新的捆绑 ID,而该帐户未添加到您的xcode
首选项中,请按照以下步骤添加新团队。
Step 1: Go to xcode preference. Step 2: Click on Accounts tab. Step 3: Click on (+) icon to add new account. Step 4: Login with developer account credential Step 5: Click on 'Done'
回答by genaks
Not sure why 'Use local signing assets' worked for me
不知道为什么“使用本地签名资产”对我有用
回答by zeeawan
I got same issue. I was pretty sure about my provisioning and certificate etc are properly set. I created all these at apple dev portal while my Xcode 6.2was opened. After downloading certificate and provisioning, I double clicked both and then was able to choose for signing from Xcode. That is NO Xcode restart needed up-to this pointas new provisioning file is available to be chosen from Xcode. Then I archived the binary and it opened in Organizer for submission.
我有同样的问题。我非常确定我的配置和证书等设置正确。当我的Xcode 6.2打开时,我在苹果开发门户上创建了所有这些。下载证书和配置后,我双击了两者,然后可以选择从 Xcode 进行签名。这是NO Xcode的重启需要上这个点作为新的配置文件都可以从Xcode的选择。然后我将二进制文件存档并在 Organizer 中打开以供提交。
But here comes the actual issue that Organiseris not aware about my true assets. So, here we need to restartthe Organiser (Xcode). I must say a bug at Apple's end to not make Organiser aware about the updated assets. As after restarting the Organiser, I submitted the app and it prompted to allow to sign certificate from Keychain.
但实际问题是主办方不知道我的真实资产。所以,这里我们需要重新启动管理器(Xcode)。我必须说 Apple 端的一个错误,无法让 Organizer 了解更新的资产。在重新启动 Organizer 后,我提交了应用程序并提示允许从 Keychain 签署证书。
回答by Linda
Only this way solved the issue for me: Open the "Keychain Access" app and select "View" -> "Show Expired Certificates". Remove ALL expired Apple certificates! Restart Xcode.
只有这样才能为我解决这个问题:打开“钥匙串访问”应用程序并选择“查看”->“显示过期证书”。删除所有过期的 Apple 证书!重新启动Xcode。
See: Xcode unable to create distribution builds for App Store submissions or Enterprise apps -> https://developer.apple.com/support/certificates/expiration/
请参阅:Xcode 无法为 App Store 提交或企业应用程序创建分发版本 -> https://developer.apple.com/support/certificates/expiration/
回答by Hari Raja
I was able to resolve this issue by renaming the provisioning profile name in member center and refreshing in XCode 6.
我能够通过在会员中心重命名配置文件名称并在 XCode 6 中刷新来解决此问题。