xcode5.1 iOS7.1 ZXing CHECKSUM_EXCEPTION_H 出错

来源:互联网 发布:淘宝代运营合同诈骗 编辑:程序博客网 时间:2024/06/04 21:04
 http://stackoverflow.com/questions/22411565/build-error-on-ios-7-1-zxing
 

#ifndef __CHECKSUM_EXCEPTION_H__   //this line causes the error.
#define __NOT_FOUND_EXCEPTION_H__


.....


.....


#endif // __CHECKSUM_EXCEPTION_H__




Looks like there are some underground compiler settings changes in XCode 5.1.


So to fix this issue you need add -w flag to ZXingWidget Other Warning Flags. This flag completely disable all compiler warnings.  
Select ZXingWidget framework.
Select ZXingWidget target in ZXingWidget framework.
Press Build setting tab and type "other wa" in search.
Add -w parameter flag to Other Warning Flags.
Here is a screen with steps how to add this flag: 



0 0
原创粉丝点击