zbar SDK dont work for armv7s(iPad 4 iOS 7)

别来无恙 提交于 2019-12-03 11:59:06

You can use a custom version of ZbarSdk built for iOS 7, which can be found here : http://nerdvision.net/app-development/ios/zbar-sdk

I didn't have any luck with the NerdVision version, but using this one worked for me immediately.

http://www.federicocappelli.net/2012/10/05/zbar-library-for-iphone-5-armv7s/

You can download the library compiled for arm7, arm7s and arm64 here (the nerdvision link is dead)

Turn off armv7s in your project architecture settings. It's not really necessary unless you or a library needs the few additional instructions. All it generally does is add "Optimized for iPhone 5" in the app store description.

I just upgrade my Xcode 5.1 and iOS 7. When it is compiled onto simulators, it works without problem. When it is compiled onto iPhone 5s running under iOS 7, it is getting an error of linker command. After turn off armv7s, it works fine.

I've created a framework using this link and the source code of the ZBarSDK. You can download the framework here. Just unzip the ZBarFramework.framework and drag it in your project. All headers in there are public. To use the framework in code you just have to import the header files.

#import <ZBarFramework/ZBarSDK.h>

// Example Controller
@interface SomeQRViewController : UIViewController <ZBarReaderViewDelegate>
@property (nonatomic, strong) IBOutlet ZBarReaderView *readerView;

@end
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!