【问题标题】:React native "'AIRMapCoordinate.h' file not found" error反应原生“'AIRMapCoordinate.h'文件未找到”错误
【发布时间】:2020-07-27 23:00:50
【问题描述】:

我遇到了 Xcode 的问题。我为我的 react-native 项目升级了一个包(react-native-track-player@2.0.0-rc13),之后当我尝试构建项目时,它确实在“react-native-地图@0.26.1" 包。它显示了这个错误:

'AIRMapCoordinate.h' file not found

我意识到发生此错误是因为 Xcode 找不到这些标头,而这些标头位于此目录中: $(SRCROOT)/../node_modules/react-native-maps/lib/ios/AirMaps

所以我将此路径添加到“标题搜索路径”,但它仍然无法找到这些标题。我还删除了 pod 并重新安装它们并清理了项目构建文件夹,但我仍然遇到同样的问题。 您对这里出了什么问题有任何想法吗?

【问题讨论】:

标签: ios xcode react-native react-native-maps


【解决方案1】:

对我来说也是如此,即使在设置了标题搜索路径之后问题仍然存在。

固定为:

移动pod 'react-native-google-maps', path: rn_maps_path 上方 use_native_modules

(之前低于)在 Podfile 中

  rn_maps_path = '../node_modules/react-native-maps';
  
  pod 'react-native-google-maps', path: rn_maps_path
  pod 'GoogleMaps'
  pod 'GooglePlaces'
  pod 'Google-Maps-iOS-Utils'

  config = use_native_modules! //<--- this should be below the rn-maps pod

相关问题:

RCTConvert+AirMap.h file not found Error on React Native on IOS

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-27
    • 1970-01-01
    • 1970-01-01
    • 2017-04-12
    • 1970-01-01
    • 2019-03-09
    • 2018-02-08
    相关资源
    最近更新 更多