The Apple credentials not working while expo build:ios

When I try to build iOS, it says “Invalid username and password combination, try again.”
But I can login in browser with the same credential.
The password doesn’t have any space or special signals, only containing letters and numbers.
Not sure why.

Expo CLI 4.0.16 environment info:
System:
OS: macOS 11.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.3 - /usr/local/bin/node
npm: 6.14.9 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
IDEs:
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
npmPackages:
expo: ~40.0.0 => 40.0.0
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-web: ~0.13.12 => 0.13.18
react-navigation: ^4.4.3 => 4.4.3
npmGlobalPackages:
expo-cli: 4.0.16
Expo Workflow: managed

You might need to create an app specific password: Sign in to apps with your Apple ID using app-specific passwords - Apple Support

Not sure if this is relevant anymore because last time I built my app I didn’t need an app specific password. But I have run into the problem before where I couldn’t use my normal password but instead had to create an app specific password before I built my app.

1 Like

Could you also try upgrading your expo-cli? Your version is a bit outdated. The current is 4.4.1.

1 Like

I have the app specific password that I created before. But it doesn’t require it when I try to execute expo build:ios now. Thanks anyway.

I updated expo-cli and it solved my headache. Thank you for your advice.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.