react-native init AwesomeProject新建RN項(xiàng)目的時(shí)候提示說(shuō)cocoapods安裝不了,需要手動(dòng)進(jìn)入到iOS項(xiàng)目pod install,但是pod install的時(shí)候會(huì)報(bào)錯(cuò):
Could not find proper version of cocoapods (1.11.2) in any of the sources
Run `bundle install` to install missing gems.
這時(shí)候要運(yùn)行
bundle install
但是又會(huì)報(bào)錯(cuò)
Your Ruby version is 2.7.2, but your Gemfile specified 2.7.4
報(bào)這個(gè)錯(cuò),安裝ruby2.74:
rvm install ruby-2.7.4
再重新bundle install
再重新pod install