简体   繁体   English

找不到匹配的配置文件(有效的配置文件都不允许指定的权利)

[英]No matching provisioning profiles found (None of the valid provisioning profiles allowed the specified entitlements)

I am getting an error when archiving: 归档时出现错误:

Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.in-app-payments.

I added apple pay capability since the last time I archived successfully, so it's probably to do with that. 自上次成功存档以来,我添加了Apple Pay功能,因此可能与此有关。 How do I add the entitlements to the provisioning profile? 如何将权利添加到供应配置文件? The whole certificates/provisioning profiles/app id concept is so confusing, wondering if there are any good reads (for dummies) on exactly what/why/how these work. 整个证书/供应配置文件/应用程序ID的概念是如此令人困惑,想知道(虚拟的)关于它们究竟是什么/为什么/如何工作的任何读物。

The whole certificates/provisioning profiles/app id concept is so confusing 整个证书/设置配置文件/应用程序ID概念如此混乱

Not only for you :). 不仅适合您:)。 You don't have to add entitlements to your provisioning profiles. 您无需将权利添加到您的配置文件中。 Try to go to apple developer website add your mac (if you didn't do it already) and generate new provisioning profile. 尝试转到Apple开发人员网站,添加您的Mac(如果您尚未这样做)并生成新的配置文件。 After that download it and click 2 times (xCode should automatically add it to the project). 之后,下载并单击2次(xCode应自动将其添加到项目中)。 If it doesnt solve the problem try to look into project structure code and change developer/project numbers manually to proper one. 如果不能解决问题,请尝试查看项目结构代码,并手动将开发人员/项目编号更改为适当的编号。

You need to go to developer.apple.com and log in as your developer account. 您需要访问developer.apple.com并以您的开发者帐户登录。 Go to the Certificates, Identifiers, and Profiles section, and find the app ID for your app. 转到证书,标识符和配置文件部分,并找到您的应用程序的应用程序ID。 Click on it to expend the capabilities for the app ID. 单击它可以扩展应用程序ID的功能。 Make sure In App Purchases is enabled for both development and distribution (more info here ). 确保开发和分发均启用了“应用内购买”功能(更多信息,请参见此处 )。

Apple开发人员应用程序ID服务屏幕

Once you've made sure it is there, you'll want to re-generate the provisioning profile for the app ID, and then re-download the profile to your Mac. 确保已存在该配置文件后,您将要重新生成该应用程序ID的配置文件,然后将其重新下载到Mac。 I tend to remove all my old provisioning profiles when I do this, since having multiple profiles for the same application ID can sometimes confuse Xcode. 执行此操作时,我倾向于删除所有旧的供应配置文件,因为对于同一应用程序ID拥有多个配置文件有时会混淆Xcode。 Provisioning profiles on your Mac are stored in /Library/MobileDevice/Provisioning Profiles/ Mac上的配置文件存储在/Library/MobileDevice/Provisioning Profiles/

After doing this, it isn't necessary, but I usually recommend devs to quit and relaunch Xcode. 完成此操作后,没有必要,但是我通常建议开发人员退出并重新启动Xcode。

As for resources, I think Apple's session, What's New in Code Signing , from WWDC 2016 was a great one for understanding the components that are required for code signing to work. 至于资源,我认为WWDC 2016的Apple会议“代码签名新功能”是了解代码签名工作所需组件的绝佳机会。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM