查詢版本
fastlane -version
安裝
sudo gem install fastlane
需要輸入用戶密碼
打包
進入到項目的fastlane 文件夾中澜共, Fastfile
文件中
lane :development do
lane :名稱 do
fastlane iOS development
fastlane 名稱
會根據(jù) Fastfile
文件內(nèi)容把ipa
保存本地或發(fā)布到 TestFlight
證書
fastlane match
- 需要看文件中的
Matchfile
文件庭再,如果是SSH
主儡,那是否需要密碼,如果要偶翅,flastlane
不支持贯底,得換成Https
的地址 - 當其他設備第一次使用上述命令拉取證書和描述文件時發(fā)現(xiàn)
git clone
命令被掛起了曼月。原因在于并沒有讀取本地的SSH key
,以至于缺少訪問權限禽捆,但是當隨便git clone
其他倉庫時误续,就會提示讀取SSH key
-
Matchfile
文件中url 也可以修改成本地的地址
證書類型
fastlane match appstore
fastlane match development
fastlane match adhoc
第一次執(zhí)行
- 第一次執(zhí)行
fastlane match
會提示要輸入開發(fā)者的密碼 - 再輸入
keychain_password
目測是自己定義的密碼 -
Passphrase for Match storage:
再輸入一次自定義的密碼 - 配置商店的證書
fastlane match appstore --readonly
增加設備
先注冊設備
fastlane run register_device
// 后面
Provide the name of the device to register as: 輸入設備名稱
Provide the UDID of the device to register as: 輸入UDID
// 返回 注冊成功
Successfully registered new device
// 證書添加新設備
fastlane match --force_for_new_devices
fastlane run register_device
注冊設備
force_for_new_devices
參數(shù)意味著,match
將檢查自上次運行match
后設備數(shù)是否已更改定拟,如有更改即會重新生成描述文件并下載安裝到你的計算機