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条回答
在下西门庆
2楼-- · 2019-01-16 06:44

I got same issue. I was pretty sure about my provisioning and certificate etc are properly set. I created all these at apple dev portal while my Xcode 6.2 was opened. After downloading certificate and provisioning, I double clicked both and then was able to choose for signing from Xcode. That is NO Xcode restart needed up-to this point as new provisioning file is available to be chosen from Xcode. Then I archived the binary and it opened in Organizer for submission.

But here comes the actual issue that Organiser is not aware about my true assets. So, here we need to restart the Organiser (Xcode). I must say a bug at Apple's end to not make Organiser aware about the updated assets. As after restarting the Organiser, I submitted the app and it prompted to allow to sign certificate from Keychain.

查看更多
Bombasti
3楼-- · 2019-01-16 06:44

I was also facing the same issue when using Xcode 6 GM and so I used Xcode 5.1 to create the ipa file.

查看更多
forever°为你锁心
4楼-- · 2019-01-16 06:44

In XCODE 6 when we create a provisioning profile it should be of type ADHOC.Set the profile in build settings and then archive.Everything will work fine I guess

查看更多
倾城 Initia
5楼-- · 2019-01-16 06:47

In my case "Xcode 7.3" all i needed was to clean the project, restart Xcode, re-archive and it's all fine.

查看更多
戒情不戒烟
6楼-- · 2019-01-16 06:47

To fix this, I had to disable Automatic signing management in Target > General and import both dev and pro profiles after downloading them from my Apple dev account. Rebuilt app and it worked, nothing else did. I guess this issue can come from many different sources.

查看更多
Deceive 欺骗
7楼-- · 2019-01-16 06:48

I got this error when having multiple development accounts/teams I was on. The solution for me was to make sure that all of the following were properly set up:

  1. I had a distribution certificate with private key for the account the app belonged to (if someone else has made the certificate you have to key the private key from them and install it).
  2. I had a specific (not wildcard) application ID (as in com.mycompany.myapp).
  3. I had a provisioning profile that was created using the distribution certificate mentioned above along with the AppID mentioned above.

When all of that is in place, you can refresh your account in Xcode and you should not get that message anymore...

查看更多
登录 后发表回答