OK... I got it.
Assuming you use "./buildMobileVLCKit.sh -tfb" to build the framework locally.
At the end xcodebuild is calling clang with the option "-fembed-bitcode-marker". But as VLCMedia.m gets compiled with a warning (deprecated use of..) maybe the bitcode is not written correctly.
Solution is to make sure xcodebuild passes "-fembed-bitcode" instead.
One "dirty" way to do this is adding one line into the buildMobileVLCKit.sh file.
Search for "xcodebuild" - you should end up at (currently) line 85 with
Code: Select all
xcodebuild -project "$1.xcodeproj" \
-target "$target" \
-sdk $PLATFORM$SDK \
-configuration ${CONFIGURATION} \
ARCHS="${architectures}" \
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
GCC_PREPROCESSOR_DEFINITIONS="$defs" \
> ${out}
Just add one line before the last one with "BITCODE_GENERATION_MODE=bitcode" and a backslash for continuation.
So the results should look like:
Code: Select all
xcodebuild -project "$1.xcodeproj" \
-target "$target" \
-sdk $PLATFORM$SDK \
-configuration ${CONFIGURATION} \
ARCHS="${architectures}" \
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
GCC_PREPROCESSOR_DEFINITIONS="$defs" \
BITCODE_GENERATION_MODE=bitcode \
> ${out}
Save the script and run it again (add -l option to prevent a rebuild of libVLC - would take too long).
The resulting framework can now also be used to Archive an App.
I may send Felix the patch for this, so hopefully the nightly will inherit this