简体   繁体   English

clang:错误:linker 命令失败,退出代码为 1:体系结构 x86_64 的未定义符号

[英]clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64

I have added a custom plugin to Cordova app.我已经向 Cordova 应用程序添加了一个自定义插件。 And the custom plugin uses a third party framework.并且自定义插件使用第三方框架。 When i build it through cordova command line the build fails with the error当我通过 cordova 命令行构建它时,构建失败并出现错误

clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64

But if i open xcode project now and build the app its working fine and that framework is alos added in the embedded bianries in Xcode.但是,如果我现在打开 xcode 项目并构建应用程序,它的工作正常,并且该框架也添加到 Xcode 的嵌入式二进制文件中。 But i want to buil the app from cordova command line as it needs to be automated as a part of build process.但我想从 cordova 命令行构建应用程序,因为它需要作为构建过程的一部分自动化。

Error is “clang: error: linker command failed with exit code 1“错误是“clang:错误:linker 命令失败,退出代码为 1”

You can add the deployment-target preference to your project's config.xml.您可以将部署目标首选项添加到项目的 config.xml。 For example, this would set the deployment target to iOS 10.0.例如,这会将部署目标设置为 iOS 10.0。

<preference name="deployment-target" value="11.0" />

暂无
暂无

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

相关问题 FBSDKLoginManager:架构 x86_64 + 链接器命令的未定义符号失败,退出代码为 1 - FBSDKLoginManager: undefined symbols for architecture x86_64 + linker command failed with exit code 1 XCode 12.3 ld:入口点 (_main) 未定义。 对于架构 x86_64 clang:错误:linker 命令失败,退出代码为 1(使用 -v 查看调用) - XCode 12.3 ld: entry point (_main) undefined. for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Apple Mach-O链接器错误-体系结构x86_64的未定义符号:“ _ UISceneWillEnterForegroundNotification”和“ ___isPlatformVersionAtLeast” - Apple Mach-O Linker Error - Undefined symbols for architecture x86_64: “_UISceneWillEnterForegroundNotification” and “___isPlatformVersionAtLeast” 第三方库在体系结构x86_64部分的未定义符号中创建78个链接器错误 - Third part library create 78 linker error in an Undefined symbols for architecture x86_64 section OpenCV Apple Mach-O链接器错误-体系结构x86_64的未定义符号 - OpenCV Apple Mach-O Linker Error - Undefined symbols for architecture x86_64 测试时链接器错误:体系结构x86_64的未定义符号 - Linker Error while testing: Undefined symbols for architecture x86_64 无法安装Pod:体系结构x86_64的未定义符号 - Failed to install pod: Undefined symbols for architecture x86_64 体系结构 x86_64 的未定义符号 - Undefined symbols for architecture x86_64 Twitter库错误:体系结构x86_64的未定义符号: - Twitter library error : Undefined symbols for architecture x86_64: 仪器错误:体系结构x86_64的未定义符号: - Instrument error: Undefined symbols for architecture x86_64:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM