jenkins + fastlane的简单自动化打包



fastlane beta_pgyer scheme:${scheme} configuration:${configuration} version:${version} build:${build}
设置分支参数 配置参数
主要参考 https://www.jianshu.com/p/0a475a82fbf9?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation
特别注意两点








安装bundle
sudo gem install bundle
2.工程的根目录下,添加Gemfile文件:
source "https://rubygems.org"
gem "fastlane"
gem "cocoapods"
3.然后执行,bundle install即可,执行完同时会生成一个Gemfile.lock文件
4.修改脚本为
bundle exec fastlane gym --export_method development --output_name appcDebug
错误三:Multiple schemes found but you haven't specified one
处理:用xcode打开/Users/david/.jenkins/workspace下的项目,product-scheme-manager scheme ,将项目xcode 的share勾选(或者 删掉xcode项目文件和pod项目文件xcuserdata里除主项目以外的scheme)
网友评论