有没有可能将MapboxNavigation ( 0.21或0.22版本) iOS与Xcode10一起使用。在其Github和CocoaPods网站上声明,它只能与Xcode9一起使用,但Github上的一些问题提到了Xcode10与MapboxNavigation的(成功)使用。
但是,我尝试使用Xcode10通过CocoaPods安装MapboxNavigation,得到了一堆错误:
/Users/Paul_Obernolte/Library/Developer/Xcode/DerivedData/pq-app-v2-gynuaxsohvqddqegrvemywowchkr/Build/Products/Debug-iphonesimulator/MapboxDirections.swift/Swift Compatibility Header/MapboxDirections-Swift.h:171:9: error: 'MapboxDirections/MapboxDirections.h' file not found
#import <MapboxDirections/MapboxDirections.h>
^
<unknown>:0: error: could not build Objective-C module 'MapboxDirections'使用Xcode10有什么解决方法可以避免这个错误吗?
编辑:这是我的Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
EXPO_CPP_HEADER_DIR = 'ExpoKit'
target 'pq-app-v2' do
pod 'MapboxDirections.swift', '~> 0.23'
pod 'MapboxMobileEvents',
:git => 'https://github.com/mapbox/mapbox-events-ios.git',
:commit => "79d29f1df5a9187481f5c9ac8fa13430d1f04139"
pod 'MapboxNavigation', '~> 0.21.0'
... (more Pods)
end因为这个问题,我需要单独下载MapboxMobileEvents:https://github.com/mapbox/mapbox-events-ios/pull/85
发布于 2019-07-24 21:30:01
target 'pq-app-v2' do
use_frameworks!
... (more Pods)
end更改pod文件中的代码,如果是"use_frameworks!“是注释的,而不是像上面那样将其取消注释。
https://stackoverflow.com/questions/53158702
复制相似问题