手动链接的库找不到React标头,因为标头搜索路径不包含pod目录

时间:2019-08-13 21:04:04

标签: xcode react-native

我无法更新到React Native v60.4。我已经通过Pods及其所有依赖项以及其他一些软件包安装了React。这些都工作正常。问题是当我在构建阶段手动链接库时。我可以使它起作用的唯一方法是将/ios/Pods/Headers/Public添加到其headers search paths中,但是每次我运行yarn时都会被擦除

在以前的版本中这很好,因为我将删除pod React目标,转而使用手动链接的libReact.a。现在这是一个问题,因为我无法删除React-Core目标,所以我得到重复的符号错误。

target 'AppName' do
   pod 'React', :path => '../node_modules/react-native'
   pod 'React-Core', :path => '../node_modules/react-native/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-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'

   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'
   pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

    pod 'Firebase/Core', '~> 4.13.0'
    pod 'Intercom'
    pod 'react-native-camera', path: '../node_modules/react-native-camera'
    pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'
    pod 'react-native-shimmer', :path => '../node_modules/react-native-shimmer'
    pod 'react-native-twilio-video-webrtc', path: '../node_modules/react-native-twilio-video-webrtc'
    pod 'react-native-document-picker', :path => '../node_modules/react-native-document-picker'
    pod 'Stripe', '~> 13.2.0'
    pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
    pod 'RNRate', :path => '../node_modules/react-native-rate/ios'
    pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'
    inherit! :search_paths

  pod 'react-native-webview', :path => '../node_modules/react-native-webview'
  pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
  pod 'react-native-maps', :path => '../node_modules/react-native-maps'
  pod 'RNStoreReview', :path => '../node_modules/react-native-store-review/ios'
  pod 'RCTRestart', :path => '../node_modules/react-native-restart/ios'
  pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

  pod 'BugsnagReactNative', :path => '../node_modules/bugsnag-react-native'

end

建造时,我不断得到:

node_modules/react-native/React/Base/RCTBridgeModule.h:10:9: 'React/RCTDefines.h' file not found

0 个答案:

没有答案