I'm struggling a bit to build my project with MobileVLCKit and cocoapods. Without adding any VLCKit code, I get errors when building the app, on simulator or device.
Pod file:
platform :ios, '8.0'
target 'VLCKitTest' do
pod 'MobileVLCKit'
end
This is the error I get
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)
[...]
My deployment target is 8.0. I have set my "Build Active Architecture Only" to YES in Debug.
Thanks a lot for your help!
In addition to doing what Mukesh Thawani said;
Change C++ Standard Library to libstdc++ in the Build Settings.
I also needed to add the libstdc++.6.tbd binary in Build Phases -> Link Binary With Libraries.
This worked for me with iOS 9.0.
Change C++ Standard Library to libstdc++ in the Build Settings.
I finally succeeded to compile my project using a specially iOS8 compiled version of the library by Felix Paul Kühne, Lead Developer of VLC for OS X and iOS.
Check out the link near the end of the discussion:
https://forum.videolan.org/viewtopic.php?f=36&t=128011&p=430329#p430329
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With