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

Linker error regarding bitcode when linking CMake app targeting iOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: 6.2.0 Beta2
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: