linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture
来源:互联网 发布:网络词吃灰是什么意思 编辑:程序博客网 时间:2024/05/06 13:04
解決的方法為
先點選專案 (左邊navigator列表 點選專案的圖示)
選擇target
選擇頁籤 Build Phases
Compile Sources如果沒展開的話先展開
按加號
將這個target需要的.m檔案都加入吧
(如果只有一個target 就是把所有.m檔案都加入)
這樣應該就可以解決了
會出現這樣的問題
應該是在把.m .h檔案加入到專案裡的時候
Add to targets沒有勾選要加入的target
所以記得加入的時候要勾
解决方法点击工程,在主界面中点击Build Phases,根据提示信息“XXX”来判断缺少什么文件,一般如果缺少自定义的文件,XXX会是缺少的类名,那么就在Complie Sources中加入该文件。如果缺少类库,则在Link Binary With Libraries中加入该类库。
http://suwoeiiuan.blogspot.tw/2012/04/xcode-ide-class-bug.html
在网上查了一下解决方案,发现事实上这个问题是由我的Duplicate symbol error 引起的,而Duplicated symbol error的原因是在我删除了pbxproj文件然后重新添加file时造成了文件的多次加入,也就是说一个Proj中某个类写了两次implementation,所以报错。
参考链接:
http://stackoverflow.com/questions/2264455/iphone-duplicate-symbol-error
- linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture
- Exception for IOS 1-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)
- 解决 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)
- 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)
- 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) 错误分析以及解决方案
- linker command failed with exit code 1 (use -v to see invocation)解决方法
- 数据结构(C#):队列
- 关于智能设备中无法找到PInvoke DLL问题
- C#winform配置文件详解
- http://coolshell.cn/articles/5426.html
- 道路救援行业IT系统发展趋势分析
- linker command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture
- 关于NTDDI_VERSION,_WIN32_WINNT,WINVER的含义
- 做一个类似于百度百科词条的东西
- 在Xcode下执行C/C++程序
- struts2配置文件
- Android SQLite基础
- 郑梦鸽zhuhz
- 01背包经典
- Android Multimedia