iOS fastlane Unable to upload archive. Failed to get authorization for username '이메일' and password
Error uploading '경로/경로/경로.ipa'.
Unable to upload archive. Failed to get authorization for username '이메일' and password. (
The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
Could not download/upload from App Store Connect!
Error uploading ipa file:
[Application Loader Error Output]: Error uploading '경로/경로/경로.ipa'.
[Application Loader Error Output]: Unable to upload archive. Failed to get authorization for username '이메일' and password. (
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
fastlane finished with errors
[!] Error uploading ipa file:
[Application Loader Error Output]: Error uploading '경로/경로/경로.ipa'.
[Application Loader Error Output]: Unable to upload archive. Failed to get authorization for username '이메일' and password. (
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
제목과 같은 에러와 함께 이런 에러가 발생했습니다. 제가 해결한 방법은 .env 파일을 만들어서 앱 암호를 넣어주고 해결했습니다.
fastlane을 설정하실 때 앱 프로젝트 폴더에서 fastlane init를 하셨을 탠데요 그러면 fastlane 폴더가 프로젝트 폴더 안에 생긴 것을 확인할 수 있습니다. 우리는 거기안에 env 파일을 넣어줄 것입니다.
터미널을 통해서 'fastlane init'한 위치로 이동하여 'vim fastlane/.env' 명령어를 입력해 주세요. 그럼 vim 에디터가 뜨게 됩니다.
그리고 Apple ID 관리 사이트로 이동해서
앱 암호를 선택하고 생성하면 'xxxx-xxxx-xxxx-xxxx' 이런 식의 암호가 나올 것입니다.
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD="위에서 발급한 암호"
그럼 다시 vim 에디터에 위 설정을 해줍시다. (i를 누르면 수정 가능)
입력이 완료되었다면 ':wq'를 통해서 저장할 수 있습니다.
저는 이 방법을 통하여 해결하였습니다.
숨김 파일을 확인하면 env가 생성된 것이 확인되네요.