ios - Pod 安装报错 Mapbox

标签 ios iphone swift

您好,我是安装 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/

相关文章:

iphone - 在 iphone 中创建 pdf 缩略图

ios - 代码 : Labels placed in Storyboard won't appear in the App Simulation

ios - 当点击手势执行时,带有 uitextfield 的逐字母动画同时执行

ios - Swift pushViewController 适用于 iPad 但不适用于 iPhone

ios - Storyboard segue 崩溃和 UINavigationController 最佳实践

ios - Swift 错误 : Can't invoke (. .) 参数列表类型为 (([String) -> (Int, String))

ios - 如何从 objective-c 中的动态字符串中提取子字符串?

iphone - 我的 iphone 应用程序因这个原因被拒绝 "We found that your app does not follow the iOS Data Storage Guidelines,..."

iphone - 当覆盖 View 设置为相机时,移动和缩放不起作用

ios - m3u8 文件无法在 iOS 中播放