react-native ios Podfile issue with “use_native_modules!”

前端 未结 18 2067
一生所求
一生所求 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 17:55

    Downgraded @react-native-community/cli-platform-ios from 3.1.0 to 3.0.0 and it worked.

    Added

    "@react-native-community/cli-platform-ios": "3.0.0"
    

    to package.json.

    Run npm install and then pod install to get it working again.

提交回复
热议问题