linker command failed with exit code 1 (use -v to see invocation)解决方法
来源:互联网 发布:云计算超强计算能力 编辑:程序博客网 时间:2024/05/27 09:47
编译运行代码时出现如下问题:
在网上如果搜“Undefined symbols for architecture i386:”或“clang: error: linker command failed with exit code 1 (use -v to see invocation)”可以找出大量的讲解决方案的文章,基本上导致以上错误的原因便是“没有导入相关代码文件或者库文件”,网上大部分的文章基本会说缺什么就导入什么,不免说的有些笼统,所以浣熊决定拿一个具体错误给大家演示如何根据错误提示信息解决问题:
1、信息中出现“_SecCertificateCreateWithData”,说其是undefined symbols,所以在目录搜索框中搜寻其在工程中的具体位置:
2、找到具体位置后,按住“command”点击方法继续跟踪,直到其声明根源文件:
由上图可以很清晰的看到,对该方法的声明在系统框架的Security库中
3、在Build Phases → Link Binary With Libraries中添加Security库:
重新编译运行,问题解决。
0 0
- linker command failed with exit code 1 (use -v to see invocation)解决方法
- error: linker command failed with exit code 1 (use -v to see invocation)错误解决方法
- Xcode7 出现 linker command failed with exit code 1 (use -v to see invocation)解决方法
- Xcode提示linker command failed with exit code 1 (use -v to see invocation)解决方法
- clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- iOS报错:linker command failed with exit code 1 (use -v to see invocation)解决方法
- 出现:clang: error: linker command failed with exit code 1 (use -v to see invocation),解决方法
- 错误1_clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Exception for IOS 1-linker command failed with exit code 1 (use -v to see invocation)
- 解决 linker command failed with exit code 1 (use -v to see invocation) 方法
- linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture
- error: linker command failed with exit code 1 (use -v to see invocation)
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- linker command failed with exit code 1 (use -v to see invocation)
- linker command failed with exit code 1 (use -v to see invocation)
- error: linker command failed with exit code 1 (use -v to see invocation)
- 解决 linker command failed with exit code 1 (use -v to see invocation) 的方法
- linker command failed with exit code 1 (use -v to see invocation)
- Android深入浅出之Audio 第一部分 AudioTrack分析
- 关于JavaScript的面向对象和继承有利新手学习
- Java字符串——字符串的查找indexof(),lastindexOf()
- VirtualBox下实现Ubuntu共享虚拟文件夹遇到的问题
- Insertion Sort List
- linker command failed with exit code 1 (use -v to see invocation)解决方法
- C++内存管理
- 一个手机依赖症病人的反思,你们是不是这样呢
- C++面向对象类的实例题目九
- MYSQL 显示表结构
- Mysql创建、删除用户,为用户授权的相关命令
- SQL count distinct与NULL
- C++模板学习
- Android内存优化