Publishing app with VLCKit

iOS, iPad, iPhone, tvOS specific usage questions
Waxyen
New Cone
New Cone
Posts: 3
Joined: 03 Feb 2016 14:52

Publishing app with VLCKit

Postby Waxyen » 27 Oct 2016 15:44

I am trying to submit my Apple-tv application to the store, with a VLC-library. But when I try to archive this application, xCode sais that the library needs full Bitcode support.

So I googled what to do, and I found that I need a -fembed-bitcode flag (http://stackoverflow.com/questions/3123 ... to-bitcode). So I downloaded the VLCKit repository again to build the library again with that flag.

But while compiling (I have tried the branches: IOS-2.7, IOS-2.8 and Master), the compilation process fails. It fails due to errors like ‘Apple-TV simulator cannot run C compiled programs ( I believe this was branch IOS-2.8 ). Other fail: a dead download link for the ‘openjpeg-1.5.0.tar.gz’ file.

So my only option seemed to just build the IOS-2.8 branch, and change the ./buildMobileVLCKit.sh, so that the compilation does not include the simulator. I only changed the top part to this:

BUILD_DEVICE=yes
BUILD_SIMULATOR=no
BUILD_STATIC_FRAMEWORK=no
SDK=`xcrun --sdk iphoneos --show-sdk-version`
SDK_MIN=7.0
VERBOSE=no
CONFIGURATION="Release"
NONETWORK=no
SKIPLIBVLCCOMPILATION=no
SCARY=yes
TVOS=yes
BITCODE=yes

After compiling, I opened xCode to build the static library. But then xCode gave error messages, saying that the following files are missing.
- Libcompat.a
- Libvlc.a
- Libvlccore.a

I just want to upload my application to the App Store with VLCKit. How do I do this? I get errors when building a new static library, so can anyone tell me how to avoid these? Or can someone tell me how they got their application in the store? There is a VLC-application in the App Store for the Apple-tv, so it is possible.

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: Publishing app with VLCKit

Postby ssbmaccom » 01 Nov 2016 14:20

Hi,

I submitted a patch on Oct. 6th to fix the issue.
(Sorry Felix, that I mailed it to you, but git-mailer is not working with my iCloud mail account.)
Basically you need to add an option when xcodebuild gets called.

Unfortunately VLCKit has not been updated since Sept. 26th. I would like to see my patch included and libVLC to be rebased to check for a fix to a bug in libVLC I submitted a while ago. But still waiting.

Anyway - here is the patch - you just need to add one line to the shell script.

Code: Select all

From 831a07fb5939ef749691162692a167e12377fc1f Mon Sep 17 00:00:00 2001 From: Stefan Schmidt-Bilkenroth <ssb@mac.com> Date: Thu, 6 Oct 2016 00:31:53 +0200 Subject: [PATCH] Make sure xcodebuild passes -fembed-bitcode instead of -fembed-bitcode-marker to clang. This fixes the issue, that currently VLCMedia is built without bitcode for tvOS. --- buildMobileVLCKit.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buildMobileVLCKit.sh b/buildMobileVLCKit.sh index c8e8773..94ee0fa 100755 --- a/buildMobileVLCKit.sh +++ b/buildMobileVLCKit.sh @@ -89,6 +89,7 @@ buildxcodeproj() ARCHS="${architectures}" \ IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \ GCC_PREPROCESSOR_DEFINITIONS="$defs" \ + BITCODE_GENERATION_MODE=bitcode \ > ${out} } -- 2.9.3 (Apple Git-75)+GitX


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

Who is online

Users browsing this forum: No registered users and 8 guests