Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins with Xcode 8 - Cannot find Provisioning Profiles

Jenkins cannot find our recently updated provisioning profiles and after trying every known solution I'm running out of ideas what could be wrong.

Build jobs fail with error:

No profile matching 'xxxxx' found: Xcode couldn't find a profile matching 'xxxxx'.

The build server is a Mac, running Xcode 8 and we're using Jenkins with the Xcode plugin.

Building and signing with Xcode 8 directly on the same machine is successful and I installed all the required profiles by double-clicking them.

Does anyone know any workable solution to fix this issue?

like image 984
BadmintonCat Avatar asked Sep 28 '16 03:09

BadmintonCat


People also ask

How do I import a provisioning profile into keychain?

Upload keychain and provisioning profile files sectionClick on "Choose File" and select the keychain or provisioning profile file. 2. Click on "Upload". The keychain or provisioning profile file is automatically uploaded and stored on the jenkins.


2 Answers

Put your provisioning profiles under

User/Shared/Jenkins/Library/Mobile Device/Provisioning Profiles.

You have to create manually folder under Library folder.

And make sure that your Distribution certificate is in "System" tab in keychain Access. If not then copy from "Login" tab and paste under "System" tab.

like image 154
Jenish Avatar answered Oct 01 '22 18:10

Jenish


The fix for myself was giving the jenkins user proper permissions for the ~/Library/MobileDevice folder and the ~/Library/MobileDevice/Provisioning\ Profile.

Otherwise the jenkins user can't read from the provisioning file folder.

like image 45
Jonathan Pinlac Avatar answered Oct 01 '22 18:10

Jonathan Pinlac