“_OBJC_CLASS _ $ _”,引自:xcode 4.3.2中的错误 [英] “_OBJC_CLASS_$_”, referenced from: error in xcode 4.3.2

查看:158
本文介绍了“_OBJC_CLASS _ $ _”,引自:xcode 4.3.2中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以今天我遇到了一个重大问题。我在xcode 4.3.2上遇到了涉及我的viewcontroller的问题,如以下错误消息所示:

So today I ran into a major problem. I got a problem involving my viewcontroller on xcode 4.3.2 as seen in this error message:

Undefined symbols for architecture i386: "_OBJC_CLASS_$_SecondViewController",
referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_ThirdViewController", 
referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_FourthViewController",
referenced from: objc-class-ref in Birdflix_ProViewController.o "_OBJC_CLASS_$_Author",
referenced from: objc-class-ref in Birdflix_ProViewController.o
ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我注意到这些错误只出现在我编写将我的viewcontroller链接到其他类的IBActions时。如果我删除IBActions,错误就会消失。任何帮助表示赞赏。

I noticed that these errors only appear when I program IBActions linking my viewcontroller to additional classes. If I delete the IBActions the errors disappear. Any help is appreciated.

推荐答案

终于找到了答案。在目标设置中,找到构建阶段并导航到编译源。一旦只是将正在收到错误的.m文件添加到列表中。

Finally found the answer. In your target settings, locate build phases and navigate to compile sources. Once there just ad the .m file that is getting the error to the list.

这篇关于“_OBJC_CLASS _ $ _”,引自:xcode 4.3.2中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆