我从他们的网站下载并安装了 Gstreamer iOS 库。我将教程复制到我自己的文件夹并尝试在 Xcode 中构建项目。我收到以下链接器错误。
我对此一无所知。Gstreamer.framework 与所有目标相关联。
Undefined symbols for architecture armv7:
"_iconv_open", referenced from:
__nl_find_msg in GStreamer(libintl_a_armv7_-dcigettext.o)
(maybe you meant: _g_iconv_open)
"_iconv", referenced from:
__nl_find_msg in GStreamer(libintl_a_armv7_-dcigettext.o)
(maybe you meant: _iconv_canonicalize, _g_iconv_close , _g_convert_with_iconv , _g_iconv , _g_iconv_open )
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在这里想念什么明显的东西?
解决方案
框架没有问题。我只需要在 Build Phases -> Link binary with libraries 中添加 libiconv.dylib。之后没有链接器错误!