Zxing在Xcode4.5 ios6的配置

Xcode更新到4.5以后,原来使用的ZXing库有问题,在网上可以找到解决方案。

问题1.

/iphone/ZXingWidget/Classes/parsedResults/ParsedResult.m:78:41: Incompatible pointer types sending 'Class' (aka 'Class *') to parameter of type 'id<NSCopying>'

问题描述看这里:http://code.google.com/p/zxing/issues/detail?id=1290

解决方法:重新下载更新版本的ZXing, 可以使用命令下载最新版本:svn checkout http://zxing.googlecode.com/svn/trunk/ zxing-read-only

 

问题2:

Undefined symbols for architecture i386:  "std::string::c_str() const", referenced from

 

解决方案在这里:http://stackoverflow.com/questions/12665457/zxing-in-xcode-4-5-and-ios-6

主要在项目种设置c++langue Dialect等内容

如图:

 

 

 

posted @ 2012-10-19 12:22  小令狐  阅读(912)  评论(0编辑  收藏  举报