BadmintonCat
BadmintonCat

Reputation: 9576

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?

Upvotes: 13

Views: 5739

Answers (2)

Jenish
Jenish

Reputation: 477

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.

Upvotes: 3

Jonathan Pinlac
Jonathan Pinlac

Reputation: 103

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.

Upvotes: 1

Related Questions