Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
Qt Creator 4.15.0-beta1
-
None
-
Qt 5.15, Qt 6.0
Description
Creating a new project using the "Qt Quick Application - Swipe" and choosing CMake as build system fails to build/run the application at iOS Simulator.
Building generates a lot of messages like:
"ld: warning: building for macOS, but linking in object file (/Users/fernandaandrade/Qt/5.15.0/ios/lib/libQt5Gui_debug.a(moc_qopenglengineshadermanager_p.o)) built for iOS Simulator"
After that, Qt Creator shows a "Starting remote process" message and nothing else happens.
This same project works fine when using qmake as build tool. This project (with CMake) works fine when building to macOS, it seems the issue is only for iOS Simulator with CMake.
My qtcsettings.cmake file:
- This file is managed by Qt Creator, do not edit!
set("CMAKE_BUILD_TYPE" "Debug" CACHE "STRING" "" FORCE)
set("CMAKE_CXX_COMPILER" "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" CACHE "STRING" "" FORCE)
set("CMAKE_CXX_COMPILER_TARGET " "x86_64-apple-darwin19.4.0" CACHE "STRING" "" FORCE)
set("CMAKE_C_COMPILER" "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" CACHE "STRING" "" FORCE)
set("CMAKE_C_COMPILER_TARGET" "x86_64-apple-darwin19.4.0" CACHE "STRING" "" FORCE)
set("CMAKE_PREFIX_PATH" "/Users/sandroandrade/Qt/5.15.0/ios/" CACHE "INTERNAL" "No help, variable specified on the command line." FORCE)
set("CMAKE_SYSROOT" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/" CACHE "INTERNAL" "No help, variable specified on the command line." FORCE)
set("QT_QMAKE_EXECUTABLE" "/Users/sandroandrade/Qt/5.15.0/ios/bin/qmake" CACHE "STRING" "" FORCE)
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-25058 Qt 6.0.0 for iOS fails with CMake
- Closed
- relates to
-
QTCREATORBUG-23574 cmake support for iOS
- Closed