Xcode attempted to locate or generate matching sig

2019-01-21 00:52发布

So I'm trying to create an ad-hoc build using existing provisioning profile (that worked before) with Xcode 6.0.1 on Mavericks, but after trying to export this archive, I keep getting the following error:

Do I need to re-create my certificates and provisioning profiles, or is there a better solution? Thanks!

9条回答
地球回转人心会变
2楼-- · 2019-01-21 01:15

I'm also facing this issue as a 'Team Member' role. The 'You are not allowed to perform this operation' warning leads me to believe that XCode is more strictly enforcing the roles defined here: https://developer.apple.com/programs/roles/

Even though I have access to the signing assets (certificate and provisioning profile), XCode won't allow me to specify them. Try upgrading your role to Team Admin.

Updated 2014-09-29: After extensive research, I've found it is possible to generate the .ipa using xcodebuild from the command line even as a 'Team Member' role using the following:

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

credit to 1

Note: As pointed out in the linked article, the "Provisioning Profile Name" is the name specified in the name field of the certificate (viewable from developer.apple.com).

You can automate the process in xcode by including the call into your project build script.

查看更多
混吃等死
3楼-- · 2019-01-21 01:15

I my case, the problem was App ID. Of course the app did exist in my member center account. The problem was in Capabilities pane. Some of the capabilities had not resolved issue, but the build was succesed. This lead to the situation, when my App ID in member center and Xcode have different capabilities settings.

Removing this dissonance have resolved my problem. Check it twice, if you have simular issue.

查看更多
太酷不给撩
4楼-- · 2019-01-21 01:17

We were able to work around this problem by simply having one of the admins download the "XC Ad Hoc: Distribution" profile from the dev center, then sending it to the "Team Member" who wanted to build, and letting him manually import it. Since he already had the cert, this was all he needed to be able to do the build and stop getting this error. Existing answers here are correct, but this is a low-friction way to get the last piece of the puzzle for many of us.

In summary, you need this profile and the cert with a private key in your keychain.

查看更多
Rolldiameter
5楼-- · 2019-01-21 01:18

You must define your account in Xcode->preferences->account It seems that you have define an appleId which is not allowed to access IOS developer account.

Try to sign with that user in https://developer.apple.com/devcenter/ios/index.action and see if that user is allowed in an IOS developer program.

This can happens if you have signed with an iTunes connect. They are different accounts.

I hope this helps!

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-21 01:20

For me, it turned out the cause of this was I had not set the project's provisioning profile property as per this answer.

查看更多
欢心
7楼-- · 2019-01-21 01:20

Your distributed account is not match team .

You must define your account in xcodeproj->Identity->Team ->Add an Account

查看更多
登录 后发表回答