【问题标题】:clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64clang:错误:链接器命令失败,退出代码 1:体系结构 x86_64 的未定义符号
【发布时间】:2020-07-13 11:50:15
【问题描述】:

我已向 Cordova 应用程序添加了一个自定义插件。并且自定义插件使用第三方框架。 当我通过cordova命令行构建它时,构建失败并出现错误

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

但是,如果我现在打开 xcode 项目并构建应用程序,它的工作正常,并且该框架也添加到 Xcode 的嵌入式 bianries 中。但我想从 cordova 命令行构建应用程序,因为它需要作为构建过程的一部分自动化。

【问题讨论】:

    标签: ios cordova frameworks linker-errors


    【解决方案1】:

    错误是“clang: error: linker command failed with exit code 1”

    您可以将部署目标首选项添加到项目的 config.xml 中。例如,这会将部署目标设置为 iOS 10.0。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-11
      • 1970-01-01
      • 2013-10-10
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      • 2020-02-07
      • 1970-01-01
      相关资源
      最近更新 更多