jim*_*bob 2 xcode qr-code generator ios
我正在尝试将QR码生成库集成到我的应用程序中.
QR生成器库是:
https://github.com/kuapay/iOS-QR-Code-Generator
我想我必须将它集成错误,因为我收到此错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Barcode", referenced from:
objc-class-ref in QRViewController.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)
什么是最有可能造成这种情况的?
Mat*_*ing 11
您最有可能链接到为设备编译的库版本(ARMv6/v7体系结构),同时尝试编译模拟器(i386体系结构).尝试在设备上运行.
如果运行它的设备上也不管用,那么你可能不会对库链接可言的,你应该确认你看到你的项目的"链接二进制与图书馆"图书馆建设阶段.
小智 8
我的问题就这样解决了.
请按照说明操作:
TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run
Run Code Online (Sandbox Code Playgroud)