出现此错误,尽管该库位于“与二进制库链接”区域中并且还包含头文件。
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TestLibraryEric", 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)
为模拟器构建时出现此错误,但不是为设备构建。我以相反的方式看到了这个问题,它是为模拟器构建的,而不是为设备构建的。Build for active architecture only 设置为 NO Any idea?