PS:因?yàn)檫@是事后總結(jié),具體的錯誤當(dāng)時沒有記錄,有可能錯誤與解決方法不匹配。
bad response Forbidden 403
bad response Forbidden 403.png
在 GitHub-fastlane的Issues上找到了答案:
jwt未安裝,執(zhí)行
gem install jwt
Exit status: 錯誤
Exit status.png
關(guān)閉自動管理代碼簽名,手動設(shè)置,如下圖
NonAutoManageSign.png
2017、8、4更新
使用 “自動管理代碼簽名” :Exit status : 70
找到官方文檔,如下配置
4A06EAA3-6B3A-411D-B9C4-3257D081CEDC.png
- 1、
$(XXXXXX)
,XXXXXX 為配置文件的名字 - 2、在 Fastfile 中如下配置
//還需深刻領(lǐng)悟,用的不好
//desc "Deploy a new version to the App Store"
//match
//disable_automatic_code_signing(path: "my_project.xcodeproj")
//gym
//enable_automatic_code_signing(path: "my_project.xcodeproj")
//pilot
//end
increment_version_number 未有效設(shè)置版本
$(PROJECT_DIR)/XXXXXX/Info.plist找不到
方案:Info.plist File 修改為 XXXXXX/Info.plist
命令行設(shè)置version、build
lane :release do |op|
increment_version_number(version_number: op[:version])
increment_build_number(build_number: op[:build])
end
輸入fastlane release version:4.3.0
,版本號為4.3.0,build在當(dāng)前基礎(chǔ)上自增加
輸入fastlane release version:4.3.0 build:71
,版本號為4.3.0,build為71
輸入`fastlane release,版本號、build在當(dāng)前基礎(chǔ)上自增加