【发布时间】:2015-02-26 09:13:06
【问题描述】:
我收到一条错误消息,说明以下内容,并尝试使用我当前的编码进行许多修改,但没有解决方案。请让我知道我必须继续做什么,非常感谢。
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in HomeController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
【问题讨论】:
-
AppDelegate 和 HomeController 中是否有类名
ViewController? -
我做到了,最初 LoginViewController 被命名为 ViewController,但当我更换时,我继续收到错误,这里是代码。 -(void)rootViewController { LoginViewController *homeController = [[LoginViewController alloc] initWithNibName:@"LoginViewController" bundle:nil];
标签: ios objective-c xcode linker-errors undefined-symbol