Bitcode for iOS ?
-
wrote on 19 Mar 2016, 09:38 last edited by
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 ?
-
wrote on 20 Mar 2016, 13:38 last edited by
@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
-
wrote on 20 Mar 2016, 22:54 last edited by k.gaitanis
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.
-
wrote on 22 Mar 2016, 17:17 last edited by
Modify what in qmake?
-
Take a look at pbuilder_pbx.cpp around line 1409
-
wrote on 22 Mar 2016, 21:31 last edited by
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
2/9