Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95208

Linker error regarding bitcode when linking CMake app targeting iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.0 Beta2
    • 6.2.0 Beta1
    • Build System: CMake
    • None
    • iOS/tvOS/watchOS

    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

          For Gerrit Dashboard: QTBUG-95208
          # Subject Branch Project Status CR V

          Activity

            People

              alexandru.croitor Alexandru Croitor
              alexandru.croitor Alexandru Croitor
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: