html
Copy code
Reading Time: < 1 minutes
Hello, today we are going to solve the error that occurs when trying to build an iOS app in react native version 72 / Expo 48.

The error is as follows:
:warning: Something went wrong running `pod install` in the `ios` directory. Command `pod install` failed. └─ Cause: Invalid `Podfile` file: 783: unexpected token at ''. # from ../ios/Podfile:42 # ------------------------------------------- # use_expo_modules! > config = use_native_modules! # # -------------------------------------------
To resolve it, follow these steps:
- Update Ruby to version 3.1
brew install ruby@3.1
- Add the PATH for Ruby (the command will appear on the screen after Ruby installation is complete):
echo 'export PATH="/opt/homebrew/opt/ruby@3.1/bin:$PATH"' >> ~/.zshrc
- Reinstall CocoaPods
gem install cocoapods
- Add the PATH for CocoaPods
echo 'export PATH="/opt/homebrew/lib/ruby/gems/3.1.0/bin:$PATH"' >> ~/.zshrc
