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

[Reg 6.7 -> 6.8.0][iOS] CMake projects can no longer manually link to libqiosnsphotolibrarysupport.a

XMLWordPrintable

    • iOS/tvOS/watchOS

      A CMake project which uses the native iOS photo picker must manually link to libqiosnsphotolibrarysupport.a, unlike qmake (see comments at QTBUG-120676)

       

      Unfortunately, this causes linking errors in Qt 6.8.0:

      Undefined symbols for architecture x86_64:
        "_ALAssetPropertyAssetURL", referenced from:
            ____ZN13QIOSAssetDataC2ERK7QStringP27QIOSFileEngineAssetsLibrary_block_invoke_2 in libqiosnsphotolibrarysupport.a(qiosfileengineassetslibrary.mm.o)
            QIOSFileEngineIteratorAssetsLibrary::advance() in libqiosnsphotolibrarysupport.a(qiosfileengineassetslibrary.mm.o)
        "_ALAssetPropertyType", referenced from:
            ____ZN19QIOSAssetEnumerator14startEnumerateEv_block_invoke_3 in libqiosnsphotolibrarysupport.a(qiosfileengineassetslibrary.mm.o)
        "_ALAssetTypePhoto", referenced from:
            ____ZN19QIOSAssetEnumerator14startEnumerateEv_block_invoke_3 in libqiosnsphotolibrarysupport.a(qiosfileengineassetslibrary.mm.o)
        "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
            objc-class-ref in libqiosnsphotolibrarysupport.a(qiosfileengineassetslibrary.mm.o)
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      

       

      See the attached archive, which contains both qmake and CMake versions of the same project.

        qmake CMake
      Qt 6.7.1 OK OK
      Qt 6.8.0 OK Error

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

            semlanik Alexey Edelev
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes