Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.8.0
-
macOS 13.5.2, iOS SDK 16.4
Description
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 |
Attachments
Issue Links
- is replaced by
-
QTBUG-130850 [iOS] Document how to get a CMake project to use the native photo picker
- Closed