iOS Build Error QT6 with Qt6_FOUND to FALSE
Solved
Qt 6
-
Unable to build iOS application on QT6,
getting below error./Users/prasadmp/HelloQT/CMakeLists.txt:28: error: Found package configuration file: /Users/prasadmp/Qt/6.0.3/ios/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Core" config file at "" Failed to find Qt component "Quick" config file at ""
-
QTBUG-93384 created to track the problem,
solutions are:
- QT Creator 4.15 release
- use the 4.15 rc https://www.qt.io/blog/qt-creator-4.15-rc1-released
- Manually specify the proper configuration options to the prohect, either in the kit cmake settings, or in the project cmake settings (or configure from command line)
The required configure options are
-DCMAKE_TOOLCHAIN_FILE:PATH=/Volumes/T3/Dev/qt/official_qt/6.0.3/ios/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_OSX_ARCHITECTURES:STRING=arm64
-DCMAKE_OSX_SYSROOT:STRING=iphoneos in /Volumes/T3/Dev/projects/builds/build-ios_cmake_empty_quick_project_6_0_3-Qt_6_0_3_for_iOS