您好,我是安装 Mapbox 的 pod。我收到以下错误。
Swift pod MapboxCoreNavigation
依赖于 MapboxMobileEvents
,它没有定义模块。要选择那些生成模块映射的目标(在构建静态库时必须从 Swift 导入它们),您可以在 Podfile 中全局设置 use_modular_headers!
,或指定 :modular_headers => true
对于特定的依赖项。
这是我的 Pod 文件
source 'https://github.com/CocoaPods/Specs.git'
target ‘DailyWages’ do
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'MapboxNavigation'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
请帮助。我们将不胜感激。
最佳答案
“use_modular_headers!”帮助了我。
在这一行之后添加:“target ‘DailyWages’ do”
关于ios - Pod 安装报错 Mapbox,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51186201/