我正在导入一个第三方项目,它有自己的框架。我希望研究那个 API,当我试图打开那个项目时,我得到了
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_T0Command", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_T1Command", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_iSmart", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我花了将近一个半小时来寻找解决方案。
Link Binaries with Libraries
包含所需的框架,最初缺少我已经添加
该项目已多次构建和清理。
编辑 1 我已经在框架的二进制文件上使用终端运行了“文件”命令
file iSmartSDK
iSmartSDK: Mach-O universal binary with 2 architectures
iSmartSDK (for architecture armv7): Mach-O object arm
iSmartSDK (for architecture armv6): Mach-O object arm