Skip to content

Instantly share code, notes, and snippets.

@wtsnz
Created September 28, 2015 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtsnz/a7db502a6c8e713e93cf to your computer and use it in GitHub Desktop.
Save wtsnz/a7db502a6c8e713e93cf to your computer and use it in GitHub Desktop.
Add -fembed-bitcode to MobileVLCKit
From 968ff57dd5830d9962d429e5757737274305e12f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?W=20T=20K=C3=BChne?= <will@townsend.io>
Date: Fri, 29 Sep 2015 18:34:26 +0200
Subject: [PATCH 13/13] add -fembed-bitcode
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index f514732..4917973 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -183,6 +183,8 @@ else
export CFLAGS="${CFLAGS} -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi
+export CFLAGS="${CFLAGS}"
+
export CXXFLAGS="${CFLAGS}"
export CPPFLAGS="${CFLAGS}"
@@ -216,6 +218,7 @@ else
export LDFLAGS="${LDFLAGS} -v -Wl,-${OSVERSIONMINLDFLAG},${SIXTYFOURBIT_SDK_MIN}"
fi
+CFLAGS="${CFLAGS} -fembed-bitcode"
info "LD FLAGS SELECTED = '${LDFLAGS}'"
@torcelly
Copy link

Hello,

I'm trying to compile MobileVLCKit to build tvOS framework. I got it without bitcode. tvOS needs bitcode and I can't archive the project. I've found that gist and this one (https://gist.github.com/wtsnz/ade50e67ae6b006c1db3). Did you compile libTVVLCKit.a with bitcode? Could you tell me the steps to do it?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment