Bitcode for iOS ?
-
I have an app for iOS distributed via the AppStore. I would like to benefit from the advantages of including bitcode in my bundle. Is that possible ? Currently when I try to compile my app with Xcode and bitcode enabled I get the following error :
ld: -u and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
Is this Qt related or am I doing something wrong?
-
Hi,
What version of Qt are you using ?
-
@SGaist Qt 5.6 installed using the online installer
-
From what I found, currently bitcode is disabled to support deployment target under iOS 6.0
-
And if we only want to support iOS 8.1 and higher? Would it be possible to enable it?
-
You'll have to modify and recompile qmake for that.
-
Modify what in qmake?
-
Take a look at pbuilder_pbx.cpp around line 1409
-
Found this at line 1425 of qtbase-5.6.0/qmake/generators/mac/pbuilder_pbx.cpp:
// Bitcode is only supported with a deployment target >= iOS 6.0. // Disable it for now, and consider switching it on when later // bumping the deployment target. settings.insert("ENABLE_BITCODE", "NO"); settings.insert("GCC_GENERATE_DEBUGGING_SYMBOLS", as_release ? "NO" : "YES");
This seems like it would solve my problem. It also seems to answer to my other post concerning DSym files (iOS: DSym not uploaded to the AppStore).
I don't have time to test right now, but I'll definitively give it a try soon and report back.
Thanks SGaist