Mac Jenkins
搞了俩天的Jenkins,网上的流程都很详细,所以不在叙述过程,记录下自己遇到的问题。
1. Jenkins 运行环境 JDK。
2. 关联gitlab的时候,权限问题,当前gitlab对应的用户要和Jenkins上添加的用户一致。
$ git config user.name "yourname" $ git config user.email "youremail@youremail.com"
3. 关于导出ipa的指令,需要对应的plist文件,如下
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>compileBitcode</key> <false/> <key>method</key> <string>development</string> <key>provisioningProfiles</key> <dict> <key>bundleID</key> <string>配置文件</string> </dict> <key>signingCertificate</key> <string>iPhone Developer</string> <key>signingStyle</key> <string>manual</string> <key>stripSwiftSymbols</key> <true/> <key>teamID</key> <string>xxxxxxxx</string> <key>thinning</key> <string><none></string> </dict> </plist>