Xcode 4.6 zXing compile error after Xcode update (4H127)

烈酒焚心 提交于 2019-11-28 18:52:38

Just add this flag

-Wno-unused-private-field

under ZXingWidget target -> Build Settings -> Other Warning Flags. Click the + button and paste the flag, clean and build again.

(No need to remove any other flag, just ignore unused private field warning)

Here is a workaround to get it to compile. You have remove couple compile warning flags:

Select the xzing project, build settings, look for "Other Warning Flags" and remove -Werror and -Wno-unused-parameter

They have the project set up to treat warnings as errors. Turn off that setting and it should compile, so you can at least run the sample code.

Also tell them so they can fix the warnings.

Looks like this is a temporary fix http://code.google.com/p/zxing/issues/detail?id=1494 I hope for a much nicer solution soon.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!