首页 > 其他 > 详细

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

时间:2016-05-12 10:30:35      阅读:268      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!