Jenkins problem with Xcode 6 application: "Code sign error: code signing identifiers not found"

I get a Jenkins error when creating an Xcode project. I know that many had this problem, and I read and tried the clock tips to no avail.

This is the Execute Shell command that I tell Jenkins:

export DEVELOPER_DIR='/Applications/Xcode 6.app/Contents/Developer/' cd TM xcrun xcodebuild clean build 

Here is the error message in my Jenkins release:

 === CLEAN TARGET TM OF PROJECT TM WITH THE DEFAULT CONFIGURATION (Release) === Check dependencies [BEROR]Code Sign error: No code signing identities found: No valid signing identities (ie certificate and private key pair) matching the team ID "(null)" were found. [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0' Create product structure /bin/mkdir -p /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app Clean.Remove clean build/Release-iphoneos/TM.app builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app Clean.Remove clean build/Release-iphoneos/TM.app.dSYM builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/Release-iphoneos/TM.app.dSYM Clean.Remove clean build/TM.build/Release-iphoneos/TM.build builtin-rm -rf /Users/Shared/Jenkins/Home/jobs/TM/workspace/TM/build/TM.build/Release-iphoneos/TM.build ** CLEAN SUCCEEDED ** === BUILD TARGET TM OF PROJECT TM WITH THE DEFAULT CONFIGURATION (Release) === Check dependencies Code Sign error: No code signing identities found: No valid signing identities (ie certificate and private key pair) matching the team ID "(null)" were found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0' ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Build step 'Execute shell' marked build as failure 

Tips I tried without success:

  • I set my code signature in my build settings (current, Release = Do not Code Sign; Release> Any iOS SDK = iPhone developer).
  • I have indicated in the Xcode plugin configuration where my login.keychain file is located.
  • I uploaded my .developerprofile to Jenkins and indicated that it should be imported before each build.

And further.

I don’t know what else I can do. It seems significant that he says team ID "(null)" - but I can not find the answers to the question why this is so.

I am running Xcode 6 with the goal of iOS 8.0.

+6
source share
2 answers

I would like this to help. Sample script. http://blog.octo.com/wp-content/uploads/2010/11/build.txt

0
source

Fixed issue with Jenkins and Xcode 6.4.

Make sure you have at least one developer certificate in your login chain. Right-click on the certificate and click "Get Information" to show permissions.

Expand the Trust list and in the When Using This Certificate box, select Always Trust.

Close the window. The Dev certificate should now have a blue β€œ+” sign.

Happy Jenkins!

0
source

Source: https://habr.com/ru/post/975956/


All Articles