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

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链接到其他类的IBAction时出现。如果删除IBAction,错误将消失。任何帮助表示赞赏。

最佳答案

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

关于ios - “_OBJC_CLASS_$_”,从: error in xcode 4. 3.2引用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10302522/

10-12 15:42