I am using the zBar library on an iOS 8 project and I get these compiler warnings:
Undefined symbols for architecture armv7:
"_iconv", referenced from:
_qr_code_data_list_extract_text in libzbar.a(qrdectxt.o)
"_iconv_open", referenced from:
_qr_code_data_list_extract_text in libzbar.a(qrdectxt.o)
"_iconv_close", referenced from:
_qr_code_data_list_extract_text in libzbar.a(qrdectxt.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I followed this suggestion putting the frameworks in order and this is how I import them:
I assume that the library libzbar.a was created for armv6 processors and as I am targeting iOS 8 with armv7 it conflicts. Is there a way to resolve this without me changing my project architecture targets?
Try to add libiconv.dylib
in frameworks. I dont think it is armv7 problem. It should run after adding missing framework.