我创建了一个干净的libmariadbclient构建并将其集成到我的项目中。每当我尝试构建所述项目时,我都会失败并出现错误:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_close", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_open", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
ld: symbol(s) not found for architecture x86_64
然后我添加libiconvlib.dylid
到我的项目中,清理它并尝试再次构建,但我仍然得到同样的错误。有任何想法吗?