jenkins + fastlane的簡(jiǎn)單自動(dòng)化打包?
fastlane beta_pgyer scheme:${scheme} configuration:${configuration} version:${version} build:${build}
設(shè)置分支參數(shù)?配置參數(shù)
主要參考?http://www.reibang.com/p/0a475a82fbf9?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation
特別注意兩點(diǎn)?
安裝bundle
sudo gem install bundle
2.工程的根目錄下陨晶,添加Gemfile文件:
source "https://rubygems.org"
gem "fastlane"
gem "cocoapods"
3.然后執(zhí)行淡喜,bundle install即可幔荒,執(zhí)行完同時(shí)會(huì)生成一個(gè)Gemfile.lock文件
4.修改腳本為
bundle exec fastlane gym --export_method development --output_name appcDebug
錯(cuò)誤三:Multiple schemes found but you haven't specified one
處理:用xcode打開(kāi)/Users/david/.jenkins/workspace下的項(xiàng)目,product-scheme-manager scheme 识虚,將項(xiàng)目xcode 的share勾選(或者 刪掉xcode項(xiàng)目文件和pod項(xiàng)目文件xcuserdata里除主項(xiàng)目以外的scheme)