react-native ios Podfile issue with “use_native_modules!”

前端 未结 18 2089
一生所求
一生所求 2020-12-05 17:15

In my react-native project (react-native@0.60) in the ios/ dir I run pod install and get this error:

[!] Invalid `Podfile` file: no implicit con         


        
18条回答
  •  一个人的身影
    2020-12-05 18:06

    One of the reasons may be outdated version of Ruby. Use following command to upgrade it.

    rvm install 2.6.1
    rvm use 2.6.1 --default
    

    Or you can follow below article, which has a detailed explanation of upgrading ruby and associated gems.

    https://help.learn.co/en/articles/2789231-how-to-upgrade-from-ruby-2-3-to-2-6

提交回复
热议问题