`expo client:ios` does not work

Running expo client:ios in a clean project gives the error:

Cannot read property 'username' of undefined
TypeError: Cannot read property 'username' of undefined
    at new IosApi (/usr/local/lib/node_modules/expo-cli/src/credentials/api.ts:44:26)
    at Context.init (/usr/local/lib/node_modules/expo-cli/src/credentials/context.ts:90:28)

One possible explanation was that the expo folders were owned by root, so I followed the guidance in this thread to ensure that my username was the owner. I’m still getting the same error.

Any guidance would be appreciated. For context, I’m attempting to install the custom iOS client so I can use Facebook auth with Firebase.

Expo Diagnostics:

  Expo CLI 3.21.1 environment info:
      OS: macOS 10.15.1
      Shell: 3.2.57 - /bin/bash
      Node: 10.13.0 - /usr/local/bin/node
      npm: 6.14.4 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
      Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
      expo: ^37.0.11 => 37.0.11 
      react: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4 
      react-navigation: ^4.3.9 => 4.3.9 
      expo-cli: 3.21.1


Make sure you have an account on Expo.IO.

Then in your Terminal write “expo login”.

After you successfully login, you can use “expo client:ios”

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