cut*_*oft 12 xcode ios react-native
我有这个错误。IOS 上的 React Native 上未找到 RCTConvert+AirMap.h 文件错误
我能够用以下方法解决这个问题:
$(SRCROOT)/../node_modules/react-native-maps/lib/ios/AirMaps
在项目目标头中添加
将pod 'react-native-google-maps', path: rn_maps_path
上面的 use_native_modules(之前位于该模块下方)移动到Podfile
添加:
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)
pod deintegrate
, pod install
, remove derived data
, clean build
)