小编Mat*_*rre的帖子

未找到 React Native ios 'GoogleMaps/GoogleMaps.h' 文件

我的应用程序有问题。

当我尝试在Android Studio上构建它时一切正常,但是当我尝试在Xcode上构建它时出现错误并且构建失败。

原因似乎来自AirMaps:

词法或预处理器问题

'GoogleMaps/GoogleMaps.h' 文件未找到

AIRGoogleMapUrlTile.h
Run Code Online (Sandbox Code Playgroud)

这很奇怪,因为直到现在它都运行良好,我找不到原因。

我正在使用:

- "react": "16.0.0-alpha.6",
- "react-native": "0.43.3",
- "react-native-maps": "^0.21.0"
Run Code Online (Sandbox Code Playgroud)

这是我的 Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'

target 'Situaction' do
  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'

  pod 'Fabric'
  pod 'Crashlytics'

  pod 'GoogleMaps'
end

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
    if target.name == "React"
        target.remove_from_project
    end
  end
end
Run Code Online (Sandbox Code Playgroud)

你能帮我吗,

提前致谢

编辑:
这里是标题搜索路径。 标题搜索路径

react-native react-native-maps

5
推荐指数
2
解决办法
8213
查看次数

标签 统计

react-native ×1

react-native-maps ×1