简体   繁体   中英

Xcodebuild code signing error on Jenkins

I get the following code signing error when trying to build my app using xcodebuild on jenkins

Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “xxxxxxxxxx” were found.
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

I am able to build it from the xcode GUI however with no problem. What is going on here? Clearly the computer has everything it needs to build an .ipa file but I can't do that through Jenkins and xcodebuild

Jenkins by default runs as " jenkins " user. Clearly the signing identities and mobile provisioning profiles are stored per user profile in ~ .

Either make your Jenkins run with the same user as your home user, or provide access to jenkins user to all your keychains and provisioning directories.

Edit:
Some answers on how to change user: How to install jenkins under current user (not 'jenkins') on MAC OS X

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM