Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
Disable bitcode for iOS project
When I build my project from Qt Creator, I see the following errors:
ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) ld: -u and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
When I run Qmake from the command line and load the Xcode project, I disable bitcode for the target. How can I do this from my qmake scripts so its disabled for QT Creator?
Anyone? I'm just trying to build the device version of my app through Qt Creator, but some of my third-party libraries don't play nicely with bitcode, so I need to disable it. I can do it easily enough through Xcode, but I don't want to add that step in my workflow if I can avoid it.
Not sure about it but try to add
CONFIG -= bitcodeto your .pro file
Hope it helps
@SGaist unfortunately, that did not work.
Then you can take a shot at fiddling with the
Shiba last edited by
This question is from a pretty long time ago, but I also ran into the issue (so I guess it's still relevant). There's also different solution that's not system wide. You can do the following:
- Navigate to the "Projects" tab
- Navigate to your Kit (e.g QT 5.9.1 for iOS) and Build variant (e.g. Debug)
- Under "Build Steps" click on the "Add Build Step" button and add "xcodebuild"
- Add "ENABLE_BITCODE=NO" without the quotation marks behind the command in the "Base arguments" textfield.
- Disable the make step
As an example:
scartezini last edited by
@Shiba 's response worked, but for each compile you need do that.
So can put this on <project>.pro to set ENABLE_BITCODE=NO, and it will work every.
Q_ENABLE_BITCODE.name = ENABLE_BITCODE Q_ENABLE_BITCODE.value = NO QMAKE_MAC_XCODE_SETTINGS += Q_ENABLE_BITCODE