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

前端 未结 6 1963
生来不讨喜
生来不讨喜 2021-02-19 01:52

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:18

    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
    

提交回复
热议问题