Problems and solutions that are easy to encounter when ZBar is integrated, and the zbar solution is integrated
1. Add several necessary frameworks:
Libiconv. tbd
QuartzCore. framework
CoreVideo. framework
CoreMedia. framework
AVFoundation. framework
2. Remember to add the integrated libzbar. a file to viewControllers.
3. If your project contains precompiled files
Other classes are also referenced in the pre-compiled file.
Required: Add # endif when the # ifdef _ OBJC _ header file is referenced. For example
# Ifndef PureStandard_PrefixHeader_pch
# Define PureStandard_PrefixHeader_pch
# Ifdef _ OBJC __
// Header file to be introduced
# Import "A. h"
# Import "B. h"
# Endif
// Use # ifdef _ OBJC _ # endif modifier # import reference header file
// Indicates that files referenced in the macro are referenced only by objects in Objective-C language, and the reference relationship is clear.
4. If a compilation Link error occurs, you can change the Bitcode to NO in build setting.