随着 Zxing 为 iOS 退休,要切换到哪个条码扫描仪?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20144071/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 22:29:01  来源:igfitidea点击:

With Zxing retiring for iOS, which barcode-scanner to switch to?

ioszxingbarcode-scannerzbar

提问by user1354603

I have implemented ZXing to my iOS-app, however I am questioning it's maintainability as not long ago it was announced that ZXing to iOS is retiring:

我已经在我的 iOS 应用程序中实现了 ZXing,但是我质疑它的可维护性,因为不久前宣布 ZXing 到 iOS 即将退休:

Retiring C++, Objective C code

停用 C++,Objective C 代码

I've also read that there might be compatibility issues with the newer phones iPhone 5S..

我还读到新手机 iPhone 5S 可能存在兼容性问题。

Also running Xcode's static code analysis on the Zxing-library reveals memory errors, I'm not sure if these errors are false positive or not, but they make me doubt Zxing even more. Further, the performance of Zxing compared to other barcode scanners feels subpar.

同样在 Zxing-library 上运行 Xcode 的静态代码分析揭示了内存错误,我不确定这些错误是否是误报,但它们让我更加怀疑 Zxing。此外,与其他条码扫描器相比,Zxing 的性能感觉不及格。

So my question is, what is the best alternative? I hear a lot of good stuff about Zbar, however I'm not sure how updated it is either.

所以我的问题是,最好的选择是什么?我听到了很多关于 Zbar 的好消息,但是我也不确定它的更新程度。

回答by Max MacLeod

iOS 7 SDK now includes a QR code reader, AVCaptureMetaDataOutput. You can read about it at i?OS 7 NSHipster.

iOS 7 SDK 现在包含一个二维码阅读器,AVCaptureMetaDataOutput. 你可以在i?OS 7 NSHipster阅读它 。

回答by RIshi

The latest and updated zXing for iOS 6 and later is available here... https://github.com/TheLevelUp/ZXingObjCIt's not going to retire... :)

适用于 iOS 6 及更高版本的最新和更新的 zXing 可在此处获得... https://github.com/TheLevelUp/ZXingObjC它不会退休... :)

回答by ssasa

You can try PDF417.mobi. It is commercial but can be used for free for educational and non-commercial purposes.

你可以试试PDF417.mobi。它是商业的,但可以免费用于教育和非商业目的。

PS. I'm working for the team that developed PDF417.mobi SDK.

附注。我正在为开发 PDF417.mobi SDK 的团队工作。