Why am I getting an error “Failed to locate or gen

2019-01-16 06:14发布

I installed the Xcode 6 GM seed, and I'm trying to create an IPA file for the first time. After archive success, when I click on the Export button, a window appears saying:

Failed to locate or generate matching signing assets

Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues.

  • Your account already has a valid iOS Distribution certificate.

    If you have your signing identity on another Mac, you can import a developer profile. You can also revoke the current certificate and request one again.

Here's a screenshot of the error:

enter image description here

Can anybody tell me how to solve this?

22条回答
We Are One
2楼-- · 2019-01-16 06:49

It seems that if you only have developer's certificate in your Keychain, you can't export Ad Hoc builds. You must have a distribution certificate as well as a distribution provision profile

查看更多
霸刀☆藐视天下
3楼-- · 2019-01-16 06:51

For me, all I had to do was restart XCode and it worked.

查看更多
太酷不给撩
4楼-- · 2019-01-16 06:52

Don't listen to anyone.

DO NEXT:

  1. Open XCODE
  2. Go to Xcode > Preferences > View Details
  3. You will see Signing Identifies at the top of new opened window. There will be "iOS Development" or "iOS Distribution". (in my case there was only 1 - iOS Development)
  4. Revoke all Signing Identifies you have there
  5. Click "+" button and click "iOS Development" then "iOS Distribution". Now you are requesting new identifies!

FINISH! ONLY 5 STEPS

查看更多
手持菜刀,她持情操
5楼-- · 2019-01-16 06:54

My problem was caused by something different, so this might be able to help.

Its quite simple, I have to dev accounts and I chose the wrong one when Exporting on the organizer! Duh.

Hope this helps.

查看更多
别忘想泡老子
6楼-- · 2019-01-16 06:54

This must be an issue with the team you have selected. If you have created a new bundle id from some other apple account which is not added in your xcode preferences follow the below steps to add new team.

Step 1: Go to xcode preference.
Step 2: Click on Accounts tab.
Step 3: Click on (+) icon to add new account.
Step 4: Login with developer account credential
Step 5: Click on 'Done'
查看更多
太酷不给撩
7楼-- · 2019-01-16 06:55

I could see my Distribution certificate in the keychain, but it was unsigned. I solved this by going to the Dev site, clearing out all certificates and provisioning profiles (yes, deleting all), and re-gen the certificates (dev and dist) and download and clearing old certs and importing new into keychain. Also if you have more than one app ID, generate the distribution profile and download in import else Xcode mgmgt may choose the wrong app to create the profile (happened to me). Restarting XCode, I made sure that the iOS Distribution was chosen in my apps Target signing section (it was not). XCode remade the prov-profiles for me. It passed signing validation (ugh now on to 64-bit support!)

查看更多
登录 后发表回答