react-native ios Podfile issue with “use_native_modules!”

前端 未结 18 2085
一生所求
一生所求 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条回答
  •  旧时难觅i
    2020-12-05 17:57

    Getting rid of the line use_native_modules! works as well. Maybe this has been deprecated or syntax has changed? Curious to hear from others.

    Update: Seems to be an issue with react-native 0.60.0. Until a release fixes this bug, 0.59.10 can be explicitly installed, and you only need to add CocoaPods as necessary.

    react-native init APP_NAME --version react-native@0.59.10

提交回复
热议问题