架构i386的未定义符号:Apple Mach-O Linke(id)错误

7 linker-errors ipad

我有这样的错误

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)
Run Code Online (Sandbox Code Playgroud)

你怎么解决这个问题?请帮我.

War*_*ton 18

ViewController.m在项目中找到该文件并选择它.

使用属性检查器(Apple-Option-1)确保将其添加到目标成员身份中,无论目标可能是什么.它需要在目标旁边打勾.