最近在用Jenkins+fastlane進(jìn)行自動(dòng)化打包,由于用master+slave的架構(gòu),其中遇到不少坑,網(wǎng)上搭建Jenkins及master+slave的方法很多,此處不再贅言,只將遇到的坑及解決方法進(jìn)行分享
pod 命令找不到,添加環(huán)境變量
Jenkins權(quán)限
Fastlane遇到CURRENT_PROJECT_VERSION key set for this project錯(cuò)誤
- 運(yùn)行fastlane后再次運(yùn)行,可能會(huì)出現(xiàn)CURRENT_PROJECT_VERSION錯(cuò)誤,這個(gè)時(shí)候把更改的project.pbxproj重置掉,然后重新運(yùn)行fastlane即可
- https://developer.apple.com/library/content/qa/qa1827/_index.html
Jenkins打包可能會(huì)缺少scheme,查看是否有scheme的方法
- xcrun xcodebuild -list -workspace './GoldenShop.xcworkspace’
多重簽名問(wèn)題
seckey api returned 25308問(wèn)題
- security unlock-keychain -p ‘password' ${keychain}
- 第一次使用xcodebuild 命令行調(diào)用 codesign 的那一刻,圖形界面會(huì)彈出一個(gè)提示codesign 想要使用 xxx 證書(shū)簽名,問(wèn)你是否允許,這個(gè)時(shí)候需要在圖形界面上等提示,然后點(diǎn)擊允許,否則會(huì)出現(xiàn)權(quán)限問(wèn)題
Jenkins couldn't find specified scheme
遇到提示fastlane需要安裝最新版本安裝不上去
- sudo gem install rubygems-update
- sudo gem install fastlane