我试图通过链接使示例代码运行下载
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 框架。