Search code examples
iosiphonezxingios7.1

zxingwidget build error on ios 7.1


I try to build my app, with xzingwidget, on xcode 5.1 and I get the following error.

'CHECKSUM_EXCEPTION_H' is used a header guard here, followed by #define of a different macro

I have to change some build setting?

SOLUTION

This Xcode 5.1 unused consts treated as error helped me to find the solution.

I removed all "Apple LLVM 5.1 Custom Compiler Flags" in the ZXingWidget target, now everything works


Solution

  • On deployment target iOS7 there seems to be the need to set the compilers to C++ 11 (sdt) as well as libc++ (LLVM)

    After switching those settings the build runs successfully

    You can refer to here for more info.