[英]Using MapboxNavigation iOS with Xcode 10
是否有可能在Xcode 10上使用MapboxNavigation
( 0.21
或0.22
版本)iOS。在其Github和CocoaPods網站上指出,它只能與Xcode 9一起使用,但是Github上的一些問題提到(成功)使用了Xcode 9。帶有MapboxNavigation
Xcode 10。
但是,我嘗試使用Xcode 10通過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'
是否有任何解決方法可以避免使用Xcode 10出現此錯誤?
編輯:這是我的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
target 'pq-app-v2' do
use_frameworks!
... (more Pods)
end
如果是“ use_frameworks!”,請更改pod文件中的代碼。 上面的評論比未評論的評論多。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.