Duplicate Module Name: react-native

前端 未结 5 1359
梦如初夏
梦如初夏 2021-02-01 14:38

I ran Pod Update in my XCode Project and now my project isn\'t compiling due to duplicate modules being downloaded. Anyone know any solutions?

Looki         


        
5条回答
  •  醉梦人生
    2021-02-01 15:04

    I just spent some time searching around for a solution and finally found something that worked! I'm not using Firebase, but the discussion here was able to help: https://github.com/invertase/react-native-firebase/issues/414 You have to add two lines to your Podfile.

    # Add these to your Podfile
    pod 'React', :path => '../node_modules/react-native'
    pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
    

    Then run the following to make sure you reinstall your CocoaPods.

    cd ios
    rm -rf Pods
    pod install
    

提交回复
热议问题