我正在尝试通过链接下载运行示例代码。
http://www.magtek.com/support/software/downloads/sw/99510108.zip
这是一个读卡器API,这里有一份示例代码。当我运行此代码时,我遇到了错误:ld: warning: ignoring file /Users/gaurav.garg/Downloads/99510108/SampleCode/Lib/libMTSCRA.a, missing required architecture i386 in file
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MTSCRA", referenced from:
objc-class-ref in MagTekDemoAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MTSCRA类仅为头文件,而我检查过的解决方案是我们必须将.m文件添加到目标的编译源路径的构建阶段中...但不幸的是,我没有MTSCRA.m文件。MTscra.h中包含AudioToolBox和externalAccesory框架。