ios - Zxing compiles for device fine, but fails in simulator -



ios - Zxing compiles for device fine, but fails in simulator -

i have downloaded latest zxing library via svn, integrated according readme file. able integrate, compile , test on device. however, when compiling in simulator get:

missing required architecture i386 in file "_objc_class_$_zxingwidgetcontroller", referenced from: objc-class-ref-to-zxingwidgetcontroller in scannerviewcontroller.o

and

error: 'avcapturedevice' undeclared (first utilize in function)

i have attempted "weak" link (optional in xcode 4) avfoundation library prepare sec error no dice.

anyone know why occur? search seems pull opposite problem, failing on device succeeding in simulator. weird.

edit:

one more thing forgot mention have tried delete build folders , simulator, trying rebuild. same errors occur.

after revisiting project update ios5, next solution fixed this.

swap out compiler llvm gcc 4.2 zxing.xcodeproj.

ios zxing

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -