Skip to content

Instantly share code, notes, and snippets.

@sonufrienko
Last active November 20, 2022 16:02
Show Gist options
  • Save sonufrienko/6d4b7940479e3ebf4cc220e7c8ba79e7 to your computer and use it in GitHub Desktop.
Save sonufrienko/6d4b7940479e3ebf4cc220e7c8ba79e7 to your computer and use it in GitHub Desktop.

I dont know exactly what I did, but I resolved my problem.

  1. I updated MacOS and Xcode
  2. I uninstalled cocoapods from gem gem uninstall cocoapods
  3. I had some error while I was running bundle exec pod install. So I used sudo xcode-select --switch /Applications/Xcode.app link
  4. Then sudo xcodebuild -license accept
  5. Then I ran installer npx react-native init template --template react-native-template-typescript and everything was good!

Also I can recommend you to use these commands to know where is your error

  1. npx react-native init testproject --skip-install
  2. cd testproject
  3. yarn install
  4. cd ios
  5. bundle install
  6. bundle exec pod install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment