i386 架构的未定义符号:Apple Mach-O Linke(id)错误
我有这样的错误,
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
你如何解决这个问题?请帮我。
I have an error like this
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can you solve this problem? Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的项目中找到文件
ViewController.m
并选择它。使用属性检查器 (Apple-Option-1) 确保将其添加到您的目标成员资格中,无论目标是什么。目标旁边需要有一个勾号。
Find the file
ViewController.m
in your project and select it.Use the properties inspector (Apple-Option-1) to ensure that it's added to your target membership whatever that target may be. It will need have a tick next to the target.