iOS8 / Swift和MobileVLCKit构建失败

我正在努力用MobileVLCKit和 cocoapods构建我的项目.
在不添加任何VLCKit代码的情况下,我在模拟器或设备上构建应用程序时会出错.

Pod文件:

platform :ios,'8.0'

target 'VLCKitTest' do
  pod 'MobileVLCKit'
end

这是我得到的错误

Undefined symbols for architecture arm64:
  "std::runtime_error::runtime_error(std::string const&)",referenced from:
      libebml::CRTError::CRTError(std::string const&,int) in MobileVLCKit(StdIOCallback.o)
  "std::ostream& std::ostream::_M_insert<void const*>(void const*)",referenced from:
      libebml::IOCallback::writeFully(void const*,unsigned long) in MobileVLCKit(IOCallback.o)
      libebml::IOCallback::readFully(void*,unsigned long) in MobileVLCKit(IOCallback.o)

      [...]

我的部署目标是8.0.
我在Debug中将“Build Active Architecture Only”设置为YES.

非常感谢你的帮助!

解决方法

除了做Mukesh Thawani所说的话;

Change C++ Standard Library to libstdc++ in the Build Settings.

我还需要在Build Phases中添加libstdc .6.tbd二进制文件 – >链接二进制文件库.

这适用于iOS 9.0.

以上是来客网为你收集整理的iOS8 / Swift和MobileVLCKit构建失败全部内容,希望文章能够帮你解决iOS8 / Swift和MobileVLCKit构建失败所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。