make sure version
brew install watchman
sudo gem install cocoapods
node
node -v
v16.14.2
gem
gem -v
3.0.3.1
watchman
watchman -v
2022.03.14.00
ruby
ruby -v
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
cocoapods
gem which cocoapods
/usr/local/Cellar/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.3/lib/cocoapods.rb
npx react-native init AwesomeTSProject --template react-native-template-typescript npx react-native start npx react-native run-ios
add to .bash_profile
# new values
export LDFLAGS="-L/usr/local/opt/bzip2/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/bzip2/include -I/usr/local/opt/zlib/include"
brew upgrade cocoapods
nano .bash_profile
export ANDROID_HOME=/Users/macbookpro/DevTools/AndroidSDK
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
/android local.properties sdk.dir = /Users/trunghieutran/DevTools/AndroidSDK
sudo xcode-select --switch /Applications/Xcode.app