19.2.28發(fā)包,發(fā)現(xiàn)fastlane打包失敗. 提示:
Two-factor authentication must be turned on for your Apple ID. After you turn it on, signing in to your developer account will require both your password and access to your trusted devices or trusted phone number
只能開啟雙重驗證.
在打包機器上瀏覽器登錄了開發(fā)者賬號,并且信任設備. 在使用fastlane打包的時候,還是會彈出信任設置,以及安全碼.
查看(fastlane)[:https://docs.fastlane.tools/best-practices/continuous-integration/]文檔找到解決辦法.
訪問 AppleId 管理站(https://appleid.apple.com/account/manage)
-
找到 安全 - App 專用密碼,生成一個專用密碼
image.png 配置環(huán)境變量 vim ~/.bash_profile
export FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=YOUR_PSD執(zhí)行 fastlane spaceauth -u xxxxxx@email.com 按提示獲取session信息鲤竹。
復制session信息(很長一大段) 配置環(huán)境變量vim ~/.bash_profile
以上配置完后, 開始打包,又出現(xiàn)下一個問題.
按照提示, 更新fastlane fastlane update_fastlane
問題來了, 使用這個命令只能更新到2.99.1,并不更新到最新版本 2.117.0
查看fastlane -help, 發(fā)現(xiàn)還要更新插件.
fastlane update_plugin
執(zhí)行成功后, fastlane 成功更新到了最新版本.
打包成功.