码迷,mamicode.com
首页 > 其他好文 > 详细

Undefined symbols for architecture x86_64: ( linker command failed with exit code 1)

时间:2016-05-12 10:33:08      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:

当出现  linker command failed with exit code 1 (use -v to see invocation) 的错误总结,具体内容如下:
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_AppDelegate", referenced from:
      objc-class-ref in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
技术分享
 
解决方法:
找到你的工程,BuildPhases,Compile Source,然后看上图中提示找不到那个类名,此处是 
AppDelegate,所以在Compile Source一栏里点击左下角的“+”号,手动添加AppDelegate.m,再次运行程序,完美解决!
技术分享
 
 
至于出现 Undefined symbols for architecture armv7: 这样的出错提示,可以参考这个链接解决http://blog.csdn.net/hengshujiyi/article/details/21182813

Undefined symbols for architecture x86_64: ( linker command failed with exit code 1)

标签:

原文地址:http://www.cnblogs.com/sandyzhang/p/5484534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!