嗨,我正在尝试使用 MobileVLCKit。为此,我正在使用如下 cocoa 垫
pods 'MobileVLCKit'
pod 'MobileVLCKit'
然后我编译我的项目它显示了很多错误下面是我的错误日志
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const", referenced from:
TagLib::String::find(TagLib::String const&, int) const in MobileVLCKit(tstring.cpp.o)
TagLib::String::split(TagLib::String const&) const in MobileVLCKit(tstring.cpp.o)
dash::mpd::BasicCMParser::parseCommonAttributesElements(dash::xml::Node*, dash::mpd::CommonAttributesElements*, dash::mpd::CommonAttributesElements*) const in MobileVLCKit(libdash_plugin_la-BasicCMParser.o)
我尝试使用架构 x86_64 但仍然显示很多错误。我不知道如何清除这些错误。所以任何人都可以帮助我
最佳答案
当前可通过 Cocoapods 获得的 MobileVLCKit (2.2.2) 稳定版本需要 iOS 6.1 的 libstdc++ 运行时环境来提供向后兼容性。要解决这些错误,您需要设置将 MobileVLCKit 链接到 iOS 6.1 的目标的部署版本。
MobileVLCKit (3.0.0) 的下一个主要版本将需要 iOS 7 并使用现代 libc++,因此该问题将不再出现。或者,使用 pod“MobileVLCKit-prod”(版本 2.7.2),这是我们自己用来发布 VLC-iOS 的生产版本。
关于ios - MobileVlcKit 编译失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35606960/