After I’d tried to build my app to Apple Store with expo build:ios I got the following error:
Authentication with Apple Developer Portal failed!
Reason: Unknown reason, raw: “invalid byte sequence in US-ASCII”
Error: Reason: Unknown reason, raw: “invalid byte sequence in US-ASCII”
at runAction (/usr/local/lib/node_modules/expo-cli/src/appleApi/fastlane.ts:28:17)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at authenticate (/usr/local/lib/node_modules/expo-cli/src/appleApi/authenticate.ts:49:40)
at Context.ensureAppleCtx (/usr/local/lib/node_modules/expo-cli/src/credentials/context.ts:81:24)
at IOSBuilder.bestEffortAppleCtx (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:95:14)
at IOSBuilder.prepareCredentials (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:151:5)
at IOSBuilder.run (/usr/local/lib/node_modules/expo-cli/src/commands/build/ios/IOSBuilder.ts:62:7)
at IOSBuilder.command (/usr/local/lib/node_modules/expo-cli/src/commands/build/BaseBuilder.ts:39:7)
at Command. (/usr/local/lib/node_modules/expo-cli/src/exp.ts:332:7)
@wodin, we had had ! symbol in the password before we changed the password and it was removed. Unfortunately, changing the password didn’t help to get rid of this error.
Have you got another idea?
@ccheever, @charliecruzan, please guys, could you help me? I’ve already uploaded app to Play Market but can’t build ipa with expo build:ios because of this error.
@kiramarks unfortunately I’m not sure what’s causing this error. As you can see from the stack trace, it seems to originate from fastlane so I think the best thing to do is look through issues there for a similar error message (like @jason-sitespace did) and try to figure out what caused the error in those situations and what the fix was
@wodin, I have just realized that I ran this command in ~./local folder of my laptop, not in a project folder. I tried again this export LC_ALL=en_US.UTF-8 in the project folder and then expo build:ios and now I have this message instead of error:
Please enter the 6 digit code you received at +9** ••• ••• •• *0:
It does not matter what directory you are in when you set those environment variables, but if you set them like that on the command line, they only apply to that session.