Xcode 8.1 更新 MacOS 和 Xcode 后“找不到匹配的配置文件”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40737878/
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
Xcode 8.1 "No matching provisioning profiles found" after updating MacOS and Xcode
提问by Devid Farinelli
I'm testing my app with TestFlight but I can't upload my archives after updating to MacOS 10.12 and Xcode 8.1.
我正在使用 TestFlight 测试我的应用程序,但在更新到 MacOS 10.12 和 Xcode 8.1 后我无法上传我的档案。
When I archive my app, click on "Upload to App Store...", select my Development, I get this error.
当我存档我的应用程序时,单击“上传到 App Store...”,选择我的开发,我收到此错误。
No matching provisioning profiles found for "Applications/app.app"
None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.
找不到与“应用程序/app.app”匹配的配置文件
没有一个有效的配置文件允许指定的权利:application-identifier、beta-reports-active、keychain-access-groups。
What I've tried so far:
到目前为止我尝试过的:
- Reopening Xcode (Many times)
- ?+,> select team > remove every provisioning profile > re-download every provisioning profile (Reopening Xcode after each step)
- Re-downloaded and installed my certificates and provisioning profiles
- Removing every provisioning profile and building the app
- 重新打开 Xcode(多次)
- ?+ ,> 选择团队 > 删除每个配置文件 > 重新下载每个配置文件(每一步后重新打开 Xcode)
- 重新下载并安装了我的证书和配置文件
- 删除每个配置文件并构建应用程序
采纳答案by zorro2b
I had this same error when my Xcode wildcard profile expired. Xcode didn't automatically renew it even though everything was set to automatic.
当我的 Xcode 通配符配置文件过期时,我遇到了同样的错误。即使一切都设置为自动,Xcode 也不会自动更新它。
I logged in to the the portal, edited the XC: * profile, hit generate and then downloaded the resulting certificate. All good after that.
我登录到门户,编辑 XC: * 配置文件,点击生成,然后下载生成的证书。之后一切都好。
回答by Norman
On Xcode's Capabilities screen, turning a capability On and then Off will fix the issue.
在 Xcode 的 Capabilities 屏幕上,打开一个功能然后关闭将解决这个问题。
回答by Matt
None of the other answers worked for me.
其他答案都不适合我。
I had to delete all certificates from KeyChain, and also revoke them in Apple Developer portal. Then manually request a Distribution certificate in KeyChain. Upload it to the Developer portal.
我不得不从 KeyChain 中删除所有证书,并在 Apple Developer 门户中撤销它们。然后在 KeyChain 中手动请求分发证书。将其上传到开发人员门户。
XCode (8.3) must be stoppedbecause it keeps creating certificates as they are being deleted from KeyChain.
XCode (8.3) 必须停止,因为它会在从 KeyChain 中删除证书时不断创建证书。
Also, KeyChain burped and suddenly had a whole bunch of certificates and keys that it wasn't showing before. I don't know why that happened. Some were expired, which may have been causing the original problem. I deleted them all too.
此外,KeyChain 打嗝,突然有一大堆以前没有显示的证书和密钥。我不知道为什么会这样。有些已过期,这可能是导致原始问题的原因。我也都删了。
Finally, XCode was happy to Archive, and Upload to iTunes. Only two hours wasted this time.
最后,XCode 很高兴存档,并上传到 iTunes。这次只浪费了两个小时。
回答by Parth Adroja
Use the automatic option provided in Xcode just add the relevant account team in the Xcode and let Xcode manage the signing process. Then go for Archive and select proper options while making archiving.
使用 Xcode 中提供的自动选项,只需在 Xcode 中添加相关的客户团队并让 Xcode 管理签名过程。然后转到存档并在进行存档时选择适当的选项。