Git地址:
Fastlane文檔地址:
Fastlane Documentandroid
xcode-select --install
//方式一:Using RubyGems sudo gem install fastlane -NV //方式二:Using Homebrew brew cask install fastlane
sudo fastlane init
若是是要上傳AppleStore選3,若是是企業版選4ios
default_platform(:ios) platform :ios do desc "生成本地版本" lane :testabc do build_app(scheme: "ZEUS") end end
fastlane testabc desc:測試打包
在命令行輸入:git
//查詢全部action fastlane actions //查詢制定action fastlane action [action_name]
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, android, 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私鑰安裝到新的打包機github
2.在compiling Swift source files這一步不再動了:
Project --> Build Settings --> Swift compiler-code generation 找到Optimization Level 將其設置爲No optimization[-Onone]swift