Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24940

CMake project fails to build/run at iOS simulator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 4.15.0-beta1
    • iOS Support
    • None
    • Qt 5.15, Qt 6.0
    • iOS/tvOS/watchOS

    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:

      1. 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

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

          Activity

            People

              vikas Vikas Pachdha
              sandroandrade Sandro S. Andrade
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes