美文网首页
配置fastlane打包上传到testflight报错

配置fastlane打包上传到testflight报错

作者: zhengxiaolang | 来源:发表于2023-08-01 17:12 被阅读0次

背景:

配置fastlane打包上传到testflight报错:


[!] Error uploading ipa file: 
 [Application Loader Error Output]: Error uploading '/var/folders/vq/vjpg1r2x6_v895tcggcyw5d80000gp/T/464f82e0-3912-4eac-a60d-bd3155873ce6.ipa'.
[Application Loader Error Output]: Unable to upload archive. Failed to get authorization for username 'yourappleid@126.com' and password. (
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure

原因:

按照上面的报错信息就是:无法获取苹果账号的授权及密码,即密码错误或者未设置密码

解决办法:

添加凭证:即输入账号与密码
上传到testflight是不能直接输入苹果账号的登录密码。
根据苹果提供安全机制,
要先登录账号生成专用密码。

step 1:登录账号(https://appleid.apple.com/account/manage/section/security
-->生成专用密码:App-Specific Passwords

step 2:打开控制台:

//Adding a Credential(添加凭证)
//输入命令:

fastlane fastlane-credentials add --username felix@krausefx.com

//会自动要求输入密码:App-Specific Passwords
Password: *********(这里就是要输入刚刚生成的App-Specific Passwords)
如果手动输入错误:请执行以下命令:删除账号,再重复step2步骤完成添加
//Removing a Credential(移除凭证)
fastlane fastlane-credentials remove --username felix@krausefx.com
//password has been deleted.

验证:

再去控制台执行fastlane中deliver、pliot等上传相关的命令

相关文章

网友评论

      本文标题:配置fastlane打包上传到testflight报错

      本文链接:https://www.haomeiwen.com/subject/qpxupdtx.html