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