Distribution Profile requesting a Developer certificate

偶尔善良 提交于 2019-12-14 02:07:52

问题


Using Xcode 9.1, after building an iOS app, I try to archive it. But I get the following error message:

Provisioning profile "MyAppProfile" doesn't include signing certificate "iPhone Developer: My Name (X1YZ2AB3CD)".

After looking closer, I see that MyAppProfile is a Distribution Provisioning Profile (this is what I want) and X1YZ2AB3CD matches a Developer certificate.But when building MyAppProfile (for App Store) I was provided with the choice of a unique Distribution certificate (No Developer certificate). So why do I get this message complaining about MyAppProfile not including a Developer certificate. I am kind of lost. Anyone can shed some light here?

In case I give up with manual signing, here is what I get when trying to upload to appStore:

  • Automatic signing is unable to resolve an issue with the "MyApp.app" target's entitlements. Switch to manual signing and resolve the issue by downloading a matching provisioning profile from the developer website. Atlernatively, to continue using automatic signing, remove these entitlements from your entitlements file and their associated functionality from your code. Then rebuild your archive and try again.

  • Provisioning profile failed qualification Profile doesn't match the entitlements file's value for the application-identifier entitlement.


回答1:


Remove certificates from your keychain access which doesn't include private keys. I mean the certificates which does not have arrow(play button type) on left side of name.

and then from your xcode select your team from general and unable automatic code signing and then try!

You can refer this post or this post




回答2:


I finally was able to upload.

Here is what I did: I enabled in-app-purchase in the list of Application Capabilities and disabled it right after. (Giving up in-app-purchase at least temporarily)

There is a lot I don't understand here, but I am just giving this info in case it may be useful for someone with similar problems.




回答3:


None of the advice anyone else has given has worked for me.

Finally, I just "unchecked" the "Automatically manage signing" box and then used the drop-downs from my Apple developer account to fill in the signing correctly as CLEARLY the automatic feature is flawed. Do yourself a favor and just don't use it!



来源:https://stackoverflow.com/questions/47277940/distribution-profile-requesting-a-developer-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!