Jenkins xcode build project is failing. runs just fine when built on the command line. What for?

Building xcode project from jenkins is failing. runs just fine when built on the command line. What for? this is the error i am getting:

[BEROR]Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID β€šΓ„ΓΊ_UUID_β€šΓ„ΓΉ, however, no such provisioning profile was found.
[BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

      

this is the command line used: xcodebuild -project PROJECTNAME.xcodeproj / -target TARGETNAME -configuration Release -sdk iphoneos7.1 clean build

ps: anything with OBJECT was censored, so this question may appear on the internet, there was real data there.

+3


source to share


1 answer


Are you using a namechain to login or have you created another keychain to sign your jenkins subscription?

If you are just using the login keychain, make sure you unlock the keychain at build time.
If you are using a different keychain, make sure you change the keychains and then unlock it.

Jenkins - Xcode build script not working - this thread is pretty informative.



Also adding these two commands to your build can help you debug it:

/usr/bin/security list-keychains
/usr/bin/security find-identity

      

+1


source







All Articles