Подспе c не найдено для `React-Core` в` ../ node_modules / React` - PullRequest
0 голосов
/ 23 апреля 2020

Сначала его не дублируют. Потому что у меня другая проблема. Я обновил свою версию Native до версии 0.62.2 (я не обновил sh). Сейчас я имею дело с большим количеством проблем. Это моя проблема. Подспе c не найдено для React-Core в ../node_modules/React, и я не смог ее решить

Видно, что есть всегда неправильный путь в подобных проблемах. Но даже если я написал правильный путь, он дает ошибку. Также, когда я смотрю на «../node_modules/react-native», я не вижу здесь файл React-Core [! [Введите описание изображения здесь] [1]] [1] Я нашел похожие проблемы и решения. как в примерах ниже

  1. Подспе c не найдено для `React-Core` в` ../node_modules/react-native/React`

  2. Подспе c не найдено для `React-Core` в` ../node_modules/react-native`

pod install

Анализ зависимостей

Получение podspe c для DoubleConversion из ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec

[!] Нет podspe c найдено для React-Core in ../node_modules/React

Podfile

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'DGFonder' do
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  p
end

swift4 = ['Charts']

post_install do |installer|
  installer.pods_project.targets.each do |target|

    targets_to_ignore = %w(React yoga)

    if targets_to_ignore.include? target.name
      target.remove_from_project
    end

    target.build_configurations.each do |config|
      if swift4.include?(target.name)
        config.build_settings['SWIFT_VERSION'] = '4.1'
      end
    end
  end
end
```


  [1]: https://i.stack.imgur.com/NNLjD.png

1 Ответ

0 голосов
/ 23 апреля 2020

React теперь является частью реактива-натива в node_modules. Итак, вам нужно обновить ваш React-Core модуль как:

pod 'React-Core', :path => '../node_modules/react-native/React'

Уведомление react-native в указанном пути.

...