Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode continuous integration provisioning profile error

Tags:

xcode5

I am trying to setup continuous integration in Xcode 5 on Mavericks. If I have a bot do a new clean project build, it completes with no errors. If I have the bot do the build on my actual project, I get the following error:

No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”, however, no such provisioning profile was found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'

If I pull latest source on the server machine and build/archive it on the server it works as expected. All expected certificates and public keys are included in keychain. I have tried to update all provisioning profile settings in the project and build target the scheme points at. Does anyone have any ideas how to resolve this error?

EDIT: After cracking open the project file and looking at the UUID, from what I can tell the UUID for the provisioning file it can't find does exist. Perhaps this is some kind of permission issue with the build not having access to the profile or keychain certificate?

like image 285
lehn0058 Avatar asked Oct 28 '13 15:10

lehn0058


4 Answers

I had the same problem and finally managed to make it work.

First of all, I added my server to my developer team but I had the same error as you.

Then I copied my key from user keychain to system keychain as indicated here but it was still not enough.

And finally, I copied the provisioning profiles from ~/Library/MobileDevice/Provisioning\ Profiles/ to /Library/MobileDevice/Provisioning\ Profiles/ (in fact I copied all the MobileDevice directory because it didn't exist).

And now, I have a working continuous integration giving me an ipa which I can download on my Mac or install over the air on my devices.

I don't know why I had to do this, but I hope it will work for you too.

like image 170
iDou Avatar answered Sep 28 '22 17:09

iDou


I had the same problem since switching to Xcode 5. My solution was different.

Since the error message said "Your build settings specify a provisioning profile with the UUID xxxxxx", I checked the file containing my build setting (myproject.xcodeproj/projecjt.pbxproj).

There I found a line with exactly that UUID. After deleting the line (of course a made a backup of the file first), everything worked again.

like image 26
Oliver Eichhorn Avatar answered Sep 28 '22 15:09

Oliver Eichhorn


Hi I had the same issue and the problem was I had the certificates in my login keychain and the build script was looking in System keychain. I copied the certificate in system key chain also and now Xcode was able to use the provisioning profile for the build

like image 23
Anoop Avatar answered Sep 28 '22 16:09

Anoop


after searching how to solve this problem , after spending 1 whole day in front of my keyboard , looking through all pages and ideas how to solve this i actually found something interesting out.

Something came on my mind mentioned (edit YOU_APP.xcodeproj). So I SOLVED THIS:

  1. Go to your project folder
  2. Right click on YOU_APP.xcodeproj and choose Show Package Contents
  3. Edit project.pbxproj with (for example TextMate2 or somethig like this)
  4. NOW Attention. I found everything where this UUID (wrong UUID) will be displayed and just replaced with my i created and have been using for several time. I replaced 13 times.
  5. done. Just compile and thats it.

You will not believe but it worked after spending a lot of time. =)

like image 42
Imeksbank Avatar answered Sep 28 '22 15:09

Imeksbank