Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0 Beta1
-
None
Description
Trying to build an iOS application with CMake + Xcode generator that uses plugins will fail at link time with:
ld: '/Volumes/T3/Dev/qt/qt5_cmake/builds/dev-ios-super/qtdeclarative/src/quick/CMakeFiles/qtquick2plugin_init.dir/qtquick2plugin_init.cpp.o' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Volumes/T3/Dev/qt/qt5_cmake/builds/dev-ios-super/qtdeclarative/src/quick/CMakeFiles/qtquick2plugin_init.dir/qtquick2plugin_init.cpp.o' for architecture arm64
The plugin initializer object libraries don't get the bitcode flags that we set when building other Qt libraries.
Happens for both qt plugins and qml plugins initializers.
Can be worked around by disabling the ENABLE_BITCODE setting in the Xcode project build settings.
Attachments
Issue Links
- is required for
-
QTBUG-95838 Improve experience of building iOS projects with CMake
- Closed
- relates to
-
QTBUG-95199 Incorrect propagation of iOS bitcode and -fapplication-extension flags to user projects
- Closed
For Gerrit Dashboard: QTBUG-95208 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
360118,2 | CMake: Apply bitcode flags to internal plugin object lib initializers | dev | qt/qtbase | Status: MERGED | +2 | 0 |
360119,4 | CMake: Apply bitcode flags to internal qml plugin initializers | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
360371,3 | CMake: Apply bitcode flags to internal plugin object lib initializers | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
361254,2 | CMake: Apply bitcode flags to internal qml plugin initializers | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
366529,3 | CMake: Fix iOS app builds that use QScxmlEcmaScriptDataModelPlugin | dev | qt/qtscxml | Status: MERGED | +2 | 0 |
366559,2 | CMake: Fix iOS app builds that use QScxmlEcmaScriptDataModelPlugin | 6.2 | qt/qtscxml | Status: MERGED | +2 | 0 |
366560,2 | CMake: Fix iOS app builds that use QScxmlEcmaScriptDataModelPlugin | 6.1 | qt/qtscxml | Status: MERGED | +2 | 0 |