This article is not a tutorial on how to use Jenkins, but a summary of the various problems that you encounter in the actual construction process.
1 Recommended several nice tutorials about the tutorial
Use Jenkins to build a CI server developed by iOS | Webfrogs
Jenkins+github+testflight build a continuous Integration environment under Mac | A small station in tiger
2 Download installation Issues
Download http://ftp-chi.osuosl.org/pub/jenkins/osx/jenkins-1.576.pkg directly
or the official website http://jenkins-ci.org to the right of a Mac OS X click to download.
The Java environment system is installed by default, so the PKG can be installed directly.
3 Check dependencies, can't find the certificate?
Reason: There is no corresponding keychain and certificate under the Jenkins user
Workaround: Copy from the original logged-in user.
Copy/users/your logged-in user/library/keychains
/mobiledevice
To Jenkins ' home directory, which is/users/shared/jenkins/library
The library is a hidden folder that can be located by going to a folder such as the/user/hhd/library.
Then double-click /users/shared/jenkins/library/keychains/login.keychain
To open in the Keychain program, back out one more login, unlock this login
4 Argument list too long:resurive header extension failed
Cause: Xcode is configured with environment variables. Xcode-preference-locations-source Trees with custom settings
WORKAROUND: Make the same configuration in Jenkins
System Management-System Setup-environment Variables Add variable
5 Command/usr/bin/codesign failed with exit code 1
If you encounter command/usr/bin/codesign failed with exit code 1 when compiling the iphone app
You can confirm the following steps, open keychain Access, find your developer Key,get Info, take a look at this tab of Access control, and select Allow all applications to access the this item. And then recompile, try and see if it's OK.
This thing is good, but there are a lot of problems, one by one to solve, but also learned a lot of knowledge
Not to be continued ...
iOS continuous integration notes with Jenkins