配置fastlane打包上传到testflight报错

背景:

配置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等上传相关的命令

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容