Code signing issue in Xcode version 8

2019-01-25 12:08发布

I updated my Xcode to version 8 after iOS 10 release. Apple made some changes in code signing process and it is now available in general section of target settings. But the issue is my production provisioning profile is showing as ineligible one. This error message is coming:

"xxxproductionprovisioningprofile" doesn't include signing certificate "iPhone Distribution: xxx (xxx)".

I again created the provisioning profile using same distribution certificate. The distribution certificate is present in keychain too. Everything was working fine in Xcode version 7.3 and earlier. Any help is appreciated.

标签: ios ios10 xcode8
8条回答
戒情不戒烟
2楼-- · 2019-01-25 13:01

Following the steps below:

  1. Select the Target --> General --> Signing --> select the desired Team (It must the Super account)
  2. Then select the Build Settings in Target, keep the Development team with the same with Selected team. Set the Provisioning Profile with Automatic and Code Signing Identity with iOS Developer.
  3. Select the Project --> Build Settings. Set the Provisioning Profile and Code Signing Identity with Details information
查看更多
等我变得足够好
3楼-- · 2019-01-25 13:04

Ok, if you don't want delete all the previsional profiles and certificates, neither use Automatic Provisional Profiles, try this steps:

  1. Delete Provisional Profile from Accounts (cmd + ,), where you can see the list of the all Provisional Profiles according with your user.

  2. Delete the Certificate from Keychain (Login - Certificates - Search the Certificate that is causing conflict)

  3. From Developer Panel (Certificates, IDs & Profiles - Provisioning Profiles) enable your Provisional Profile that are giving you conflict with the Certificate that you want to use.

  4. Download manually you Provisional Profile (it should be green color in its indicator).

  5. From Developer Panel, go to Certificates section and download the Certificate that is associated with the Provisional Profile that you updated in the previous step.

  6. Double click to Certificate that you downloaded to install and verify that it is in the Keychain

  7. Double click to Provisional Profile that you downloaded.

  8. Go to Xcode (Project - Targets - General) and in the section named "Singing (Debug or Release)" you will can see in Elegible the new Provisional Profile.

It see that you need to update both of them (Certificate and Provisional Profile), but if you delete one, the another one keep the previous references and Xcode not update automatically. I did this and it works perfectly.

查看更多
登录 后发表回答