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条回答
\"骚年 ilove
2楼-- · 2019-01-16 07:03

I have been searching answer for this problem past 6 hours. Nothing is satisfactory. As no one knows why this is happening. Following is way to generate .ipa via command line. If that works I will update here tomorrow.

xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "Provisioning Profile Name"

Note : The "Provisioning Profile Name" is the name specified in the name field of the certificate (viewable from developer.apple.com).

This will create .ipa.

credit goes to Orginal author here

This trick worked for me.

查看更多
等我变得足够好
3楼-- · 2019-01-16 07:03

This can happen when attempting the first release with a new Xcode version on the same Mac.

In my case I had both Xcode 6 and Xcode 5 installed.

I solved the issue by exporting my .developerprofile in Xcode 5 and then importing it in Xcode 6 as follows:

In old Xcode (mine was 5.1.1)

  1. Go to Xcode > Preferences > Accounts
  2. Select Gear icon in bottom left
  3. Select Export Accounts
  4. Set the file to save in a place you'll find easily
  5. Enter password that you'll use when importing
  6. Select Save

In new Xcode (mine was 6.0.1)

  1. Go to Xcode > Preferences > Accounts
  2. Select Gear icon in bottom left
  3. Select Import Accounts
  4. Select the .developerprofile file
  5. Enter the password and you will now be able to continue.

This works from old Mac to new Mac as well.

查看更多
Viruses.
4楼-- · 2019-01-16 07:07

Problem at my end was, in itunesconnect my account was certified as "iOS developer" but not as "iOS app distributor". Had to recreate certificate, download it, open with keychain , and then revalidate the archive. It finally worked. Thanks all

查看更多
叛逆
5楼-- · 2019-01-16 07:09

Only this way solved the issue for me: Open the "Keychain Access" app and select "View" -> "Show Expired Certificates". Remove ALL expired Apple certificates! Restart Xcode.

See: Xcode unable to create distribution builds for App Store submissions or Enterprise apps -> https://developer.apple.com/support/certificates/expiration/

查看更多
登录 后发表回答