简体   繁体   English

Mapbox 导航是否与 Swift 5.0 兼容

[英]Is Mapbox Navigation compatible with Swift 5.0

Can anyone confirm that Mapbox Navigation works with Swift 5.0 or for that matter they are still a going concern?任何人都可以确认Mapbox Navigation可以与 Swift 5.0 一起使用,或者就此而言他们仍然是一个持续的问题吗? I have now tried building the frameworks in Carthage using Xcode 11.3 and a fresh install of Xcode 11.6 on a brand new Mac running the latest OS and in both cases when trying to import framework:我现在尝试在运行最新操作系统的全新 Mac 上使用 Xcode 11.3 和全新安装的 Xcode 11.6 在 Carthage 中构建框架,并且在这两种情况下尝试导入框架时:

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.2.4 compiler: 

According to some answers to this SO question , this happens when Developer has not yet released their app for Swift 5, although the Mapbox changelog claims they have根据this SO question的一些答案,当开发人员尚未为Swift 5发布他们的应用程序时会发生这种情况,尽管Mapbox更改日志声称他们已经

Have tried contacting Mapbox through every conceivable channel and radio silence.已尝试通过所有可能的渠道和无线电静音联系 Mapbox。 Hopefully they are still in business and supporting the software but I'm not sure.希望他们仍在营业并支持该软件,但我不确定。

Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.1.3 compiler: /Users/M/Desktop/War/idaru/MapboxCoreNavigation.framework/Modules/MapboxCoreNavigation.swiftmodule/arm64.swiftmodule Swift 5.1.3 编译器无法导入使用 Swift 4.2.1 编译的模块:/Users/M/Desktop/War/idaru/MapboxCoreNavigation.framework/Modules/MapboxCoreNavigation.swiftmodule/arm64.swiftmodule

This error appears because you still have a built copy of MapboxCoreNavigation on your system and Xcode is linking against it instead of building from scratch.出现此错误是因为您的系统上仍然有 MapboxCoreNavigation 的构建副本,并且 Xcode 正在链接它而不是从头开始构建。 It's always necessary to do a clean build when upgrading Xcode.升级 Xcode 时总是需要进行干净的构建。

If you encounter this error message within Xcode when building your application target, please clean your build products using Product ‣ Clean Build Folder and build again.如果在构建应用程序目标时在 Xcode 中遇到此错误消息,请使用 Product ‣ Clean Build Folder 清理构建产品并再次构建。 If you're seeing this error on the command line when running carthage update, you can try cleaning your Carthage caches using the following command:如果您在运行 carthage update 时在命令行上看到此错误,您可以尝试使用以下命令清理 Carthage 缓存:

rm -rf ~/Library/Caches/carthage/ ~/Library/Caches/org.carthage.CarthageKit/binaries/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM