[英]Cordova XCode app build clang error linker command failed on Launch Navigator
I'm trying to build my Cordova app on XCode which uses geolocation and navigation plugins. 我正在尝试在使用地理定位和导航插件的XCode上构建Cordova应用程序。 When I build the app and deploy it on the simulator from XCode it works fine.
当我构建应用程序并将其从XCode部署到模拟器上时,它工作正常。 But when I add the code which uses the geolocation and navigation plugins, the build fails with the following error:
但是,当我添加使用地理位置和导航插件的代码时,构建失败并显示以下错误:
How can this be resolved? 如何解决?
If you have access to CMMapLauncher.h and CMMapLauncher.m try to rename CMMapAddress and CMEmptyBool to CMMapAdress1 and CMEmptyBool1 for example. 例如,如果您有权访问CMMapLauncher.h和CMMapLauncher.m,请尝试将CMMapAddress和CMEmptyBool重命名为CMMapAdress1和CMEmptyBool1。 The error indicates that there is a duplication of these two variables in CMMapLauncher and LaunchNavigator.
该错误表明CMMapLauncher和LaunchNavigator中这两个变量重复。
Changing 'No Common Blocks' from Yes to No ( under Targets->Build Settings->Apple LLVM - Code Generation ) fixed the problem. 将“否通用块”从“是”更改为“否”(在“目标”->“构建设置”->“ Apple LLVM-代码生成”下)解决了该问题。
Source: https://github.com/dpa99c/phonegap-launch-navigator/issues/92 来源: https : //github.com/dpa99c/phonegap-launch-navigator/issues/92
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.