Troubleshooting
Require is not defined
If you get the following error when running npx expo start
in your project:
ReferenceError: require is not defined
make sure you are using Node.js v20 as gluestack-ui does not support newer versions of Node.js yet.
nvm use 20
Failed to load glogl.podspec
If you get the following error when running pod install
in your project:
[!] Failed to load glogl.podspec
run the following command in your terminal:
sudo xcode-select --switch /Applications/Xcode.app
xcode-select: error: tool 'xcodebuild' requires Xcode
If you get the following error:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
run the following command in your terminal:
sudo xcode-select --switch /Applications/Xcode.app
Expo cannot detect XCode
If you get the following error:
Expo cannot detect Xcode Xcode must be fully installed before you can continue
run the following command in your terminal:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer