
Git地址: Fastlane 文档地址:Fastlane Document
xcode-select --install2、安装Fastlane,在终端输入:
//方式一:Using RubyGems sudo gem install fastlane -NV//方式二:Using Homebrew brew cask install fastlaneFastlane初始化工程 1、进入工程的根目录,在终端输入Fastlane初始化命令:
sudo fastlane init2、初始化完成后会要求选择创建目的: What would you like to use fastlane for? automate screenshots automate beta distribution to TestFlight automate App Store distribution Manual setup - manually setup your project to automate your tasks
如果是要上传AppleStore选3,如果是企业版选4
3、安装验证 在fastlane文件中写入:default_platform(:ios)platform :ios do desc "生成本地版本" lane :testabc do build_app(scheme: "ZEUS") endend进入工程的根目录,在终端输入:
fastlane testabc desc:测试打包Fastlane常用工具(action) 查询action:
在命令行输入:
//查询所有actionfastlane actions//查询制定actionfastlane action [action_name]action分类: Testing
| Action | Description | Supported Platforms |
|---|---|---|
| scan | Alias for the run_tests action | ios,mac |
| slather | Use slather to generate a code coverage report | ios,mac |
| swiftlint | Run swift code valIDation using Swiftlint | ios,mac |
| xcov | Nice code coverage reports without hassle | ios,mac |
| sonar | Invokes sonar-scanner to programmatically run SonarQube analysis | ios,androID,mac |
| oclint | lints implementation files with OClint | ios,mac |
| gcovr | Runs test coverage reports for your Xcode project | ios |
| lcov | Generates coverage data using lcov | ios,mac |
| appium | Run UI test by Appium with RSpec | ios,androID |
| xctool | Run tests using xctool | ios,mac |
| run_tests | Easily run tests of your iOS app (via scan) | ios,mac |
| xcode_server_get_assets | Downloads Xcode Bot assets like the .xcarchive and logs | ios,mac |
1.报Missing Private Key:
需要从有证书的Mac中导入证书的p12私钥安装到新的打包机
2.在compiling Swift source files这一步再也不动了: Project --> Build Settings --> Swift compiler-code generation 找到Optimization Level 将其设置为No optimization[-Onone]
总结以上是内存溢出为你收集整理的Fastlane基础介绍全部内容,希望文章能够帮你解决Fastlane基础介绍所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)