提问人:rohitwtbs 提问时间:7/13/2020 更新时间:10/20/2023 访问量:39346
clang:错误:链接器命令失败,退出代码为 1:架构x86_64未定义的符号
clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64
问:
我已将自定义插件添加到Cordova应用程序。并且自定义插件使用第三方框架。 当我通过cordova命令行构建它时,构建失败并出现错误
clang: error: linker command failed with exit code 1:Undefined symbols for architecture x86_64
但是,如果我现在打开 xcode 项目并构建应用程序,它工作正常,并且该框架已添加到 Xcode 的嵌入式 bianries 中。但是我想从 cordova 命令行构建应用程序,因为它需要作为构建过程的一部分实现自动化。
答:
1赞
prabhuannamalai a
7/17/2020
#1
错误为“clang:错误:链接器命令失败,退出代码为 1”
您可以将部署目标首选项添加到项目的 config.xml。例如,这会将部署目标设置为 iOS 10.0。
<preference name="deployment-target" value="11.0" />
评论
1赞
Alen T Vinsent
12/20/2023
解释如何打开这个会更有意义,上面的答案没有意义
-3赞
Vinod
10/20/2023
#2
清理并重新生成项目。
评论