MobileVlcKit编译失败

时间:2016-02-24 16:00:39

标签: ios ffmpeg vlc broadcast libvlc

您好我正在尝试使用MobileVLCKit。因为我正在使用如下的cocoapads pod' 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,但仍然显示很多错误。我不知道如何清除这些错误。任何人都可以帮助我

1 个答案:

答案 0 :(得分:6)

通过Cocoapods提供的当前稳定版MobileVLCKit(2.2.2)要求iOS 6.1的libstdc ++运行时环境提供向后兼容性。要解决这些错误,您需要设置将MobileVLCKit链接到iOS 6.1的目标的部署版本。

MobileVLCKit(3.0.0)的下一个主要版本将需要iOS 7并使用现代libc ++,因此问题将不再发生。或者,使用pod&#34; MobileVLCKit-prod&#34; (版本2.7.2),这是我们用来发布VLC-iOS的生产版本。