IOS 上的 React Native 上未找到 RCTConvert+AirMap.h 文件错误

cut*_*oft 12 xcode ios react-native

在此输入图像描述

我有这个错误。IOS 上的 React Native 上未找到 RCTConvert+AirMap.h 文件错误

Flo*_*bre 4

我能够用以下方法解决这个问题:

  1. $(SRCROOT)/../node_modules/react-native-maps/lib/ios/AirMaps在项目目标头中添加

  2. pod 'react-native-google-maps', path: rn_maps_path上面的 use_native_modules(之前位于该模块下方)移动到Podfile

  3. 添加:

  post_install do |installer|
      //...
      installer.pods_project.targets.each do |target|
      if target.name == 'react-native-google-maps'
        target.build_configurations.each do |config|
          config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
        end
      end
      
    end
  end
Run Code Online (Sandbox Code Playgroud)
  1. 步骤 3 之后,如果仍然不起作用,请删除所有缓存 ( pod deintegrate, pod install, remove derived data, clean build)