MobileVLCKit for iOS - building issue with Bitcode option

iOS, iPad, iPhone, tvOS specific usage questions
alexk
New Cone
New Cone
Posts: 2
Joined: 22 Feb 2017 10:09

MobileVLCKit for iOS - building issue with Bitcode option

Postby alexk » 22 Feb 2017 10:59

I’ve added MobileVLCKit framework to my test project via CocoaPods Podfile.

My Project and Target options:
Build Settings/Build Options/Enable Bitcode/Yes

Xcode build with Bitcode=Yes succeeds when built for for iOS Simulators (iPad Air 2).
But Xcode build with Bitcode=Yes option fails when built for for Device (iPad):

Build error:
ld: '/Users/sk/Documents/TestApp/TestVideo3/Pods/MobileVLCKit/MobileVLCKit-binary/MobileVLCKit.framework/MobileVLCKit(libvout_ios2_plugin_la-ios2.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It is needed to set Bitcode=No option to build a project for device.

I’ve tried to download MobileVLCKit and build it, but without success.
Issue is described here: https://forum.videolan.org/viewtopic.php?f=36&t=134122

Bitcode=Yes is the default option for Xcode projects.
Is it possible to have MobileVLCKit updated on CocoaPods to allow usage of Bitcode option in iOS projects?

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

Re: MobileVLCKit for iOS - building issue with Bitcode option

Postby ssbmaccom » 10 Mar 2017 17:01

I don't know how recent CocoaPods are. Maybe check one of the latest nightly builds. My patch for bitcode generation was integrated a few weeks ago. Give it a try.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 12 guests