可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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.
回答1:
I faced this too, and fixed it by:
1- removing all certificates of my account from keychain,
2- removing all provisioning profiles from xcode and then
3- downloading provisioning profiles again via xcode and also
4- adding certificates again to the keychain.
回答2:
I was facing the same problem, I also tried removing all certificates from my login keychain, but the problem was still coming...
Then, luckily one day, I opened system keychain and found that there were more than one distribution certificates added there.I deleted those from there. And then the problem got finally solved :)
So, if you are facing this problem, make sure you delete your certificates from login as well as system keychain and add them again to the login keychain.
Hope it helps.
回答3:
I faced the same issue, fixed it without having to delete and download everything again.
I simply enabled Automatic Signing, waited for it to detect my signing certificates, and then disabled it. After that, I was able to reselect the desired provisioning profiles and the Signing Certificated were detected as they should.
回答4:
Ok, if you don't want delete all the previsional profiles and certificates, neither use Automatic Provisional Profiles, try this steps:
Delete Provisional Profile from Accounts (cmd + ,), where you can see the list of the all Provisional Profiles according with your user.
Delete the Certificate from Keychain (Login - Certificates - Search the Certificate that is causing conflict)
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.
Download manually you Provisional Profile (it should be green color in its indicator).
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.
Double click to Certificate that you downloaded to install and verify that it is in the Keychain
Double click to Provisional Profile that you downloaded.
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.
回答5:
As @mgentilc says, automatic signing works. Simply enable Automatically manage signing in General -> Signing, Xcode will create and update profiles, app IDs, and certificates automatically.
回答6:
I got the same error after updating from Xcode7 to Xcode8. I dont need to install the certificates.
In my case I only have to go to Xocde ->
"Preferences"->"Accounts".
There I have to login again my existing account, the login was
expired.
- IMPORTANT: After this, restart Xcode.
Then everything works as expected.
best regards
回答7:
Following the steps below:
- Select the Target --> General --> Signing --> select the desired Team (It must the Super account)
- 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.
- Select the Project --> Build Settings. Set the Provisioning Profile and Code Signing Identity with Details information
回答8:
I ran into the same issues, but in order to solve it I ended up generating an additional 'App Store provisioning profile' and 'Ad hoc provisioning profile'.
Hope that helps others.