No podspec found for `React-Core` in `../node_modules/react-native/React`

前端 未结 6 2360
说谎
说谎 2021-02-19 01:32

I\'m using React Native. I get this issue when I try to upload pods. I\'ve successfully installed node_modules, but I\'m getting this problem. What is the problem? If we delete

6条回答
  •  [愿得一人]
    2021-02-19 02:10

    Hey guys this updated pod file save my day.

    # Uncomment the next line to define a global platform for your project
    # platform :ios, '9.0'
    require_relative '../node_modules/react-native/scripts/react_native_pods'
    require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
    
    target 'Native_iOS_App' do
    use_frameworks!
    config = use_native_modules!
    use_react_native!(:path => config["../node_modules/react-native"])
    
    end
    

提交回复
热议问题