简体   繁体   English

Cordova XCode应用程序构建Clang错误链接器命令在启动导航器上失败

[英]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.

相关问题 无法构建Xcode项目:clang错误:链接器命令失败 - Unable to build Xcode Project: clang error: linker command failed 铛:错误:链接器命令失败,退出代码为1,Xcode链接器错误 - clang: error: linker command failed with exit code 1, Xcode Linker Error Unity 3D iOS游戏构建失败Xcode 8.32:“clang错误链接器命令失败,退出代码为1” - Unity 3D iOS Game Build Fail Xcode 8.32: “clang error linker command failed with exit code 1” 解析应用无法在实际设备上运行“ clang:错误:链接器命令失败,退出代码为1” Swift 2.0 Xcode 7 beta 6 - Parse app not working on real device “clang: error: linker command failed with exit code 1” Swift 2.0 Xcode 7 beta 6 使用iOS和Xcode的firebase“铛:错误:链接器命令失败” - firebase “clang: error: linker command failed” with ios and xcode Unity,Xcode和Clang:错误:链接器命令失败,退出代码为1 - Unity, Xcode and clang: error: linker command failed with exit code 1 尝试构建存档Xcode时出错:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Error from trying to build archive Xcode: clang: error: linker command failed with exit code 1 (use -v to see invocation) 链接器命令失败错误,xcode? - Linker command failed error, xcode? Xcode构建错误链接器命令失败,退出代码为1 - Xcode build error linker command failed with exit code 1 链接器命令失败,退出代码1 clang:错误 - linker command failed with exit code 1 clang:error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM