Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt 6.5 for MacOS. Creating XCode.project for MacOS. How?
QtWS25 Last Chance

Qt 6.5 for MacOS. Creating XCode.project for MacOS. How?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on 16 May 2023, 11:30 last edited by bogong
    #1

    Hello all!
    Is there any way to create XCode.project from Qt Creator for MacOS? For now there are nothing about XCode.project like for iOS or there are something missing by me? For me Desktop isn't primary platform.

    S 1 Reply Last reply 16 May 2023, 18:57
    0
    • B Offline
      B Offline
      bogong
      wrote on 17 May 2023, 07:11 last edited by bogong
      #4

      Technically solution found. Issue closed. Need to change parameters in Qt Creator CMake configuration:

      Screen Shot 2023-05-17 at 10.09.57.png

      Change CMAKE_GENERATOR onto Xcode instead of Ninja (default settings for MacOS).

      1 Reply Last reply
      0
      • B bogong
        16 May 2023, 11:30

        Hello all!
        Is there any way to create XCode.project from Qt Creator for MacOS? For now there are nothing about XCode.project like for iOS or there are something missing by me? For me Desktop isn't primary platform.

        S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 16 May 2023, 18:57 last edited by
        #2

        Hi,

        Do you mean doing something like cmake -G Xcode path/to/source ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        B 1 Reply Last reply 17 May 2023, 05:32
        0
        • S SGaist
          16 May 2023, 18:57

          Hi,

          Do you mean doing something like cmake -G Xcode path/to/source ?

          B Offline
          B Offline
          bogong
          wrote on 17 May 2023, 05:32 last edited by bogong
          #3

          @SGaist yes, but directly from Qt Creator without any additional settings or config change. Besides all of it, this command directly not working, CMake don't see QT without Qt Creators settings:

          $ cmake -G Xcode .
          -- The CXX compiler identification is AppleClang 14.0.0.14000029
          -- Detecting CXX compiler ABI info
          -- Detecting CXX compiler ABI info - done
          -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
          -- Detecting CXX compile features
          -- Detecting CXX compile features - done
          CMake Error at CMakeLists.txt:7 (find_package):
            By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
            asked CMake to find a package configuration file provided by "Qt6", but
            CMake did not find one.
          
            Could not find a package configuration file provided by "Qt6" (requested
            version 6.5) with any of the following names:
          
              Qt6Config.cmake
              qt6-config.cmake
          
            Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
            to a directory containing one of the above files.  If "Qt6" provides a
            separate development package or SDK, be sure it has been installed.
          
          
          -- Configuring incomplete, errors occurred!
          
          1 Reply Last reply
          0
          • B bogong referenced this topic on 17 May 2023, 06:34
          • B Offline
            B Offline
            bogong
            wrote on 17 May 2023, 07:11 last edited by bogong
            #4

            Technically solution found. Issue closed. Need to change parameters in Qt Creator CMake configuration:

            Screen Shot 2023-05-17 at 10.09.57.png

            Change CMAKE_GENERATOR onto Xcode instead of Ninja (default settings for MacOS).

            1 Reply Last reply
            0
            • B bogong has marked this topic as solved on 17 May 2023, 07:11
            • C Christian Ehrlicher moved this topic from General and Desktop on 17 May 2023, 07:30
            • B Offline
              B Offline
              bogong
              wrote on 17 May 2023, 13:00 last edited by
              #5

              Or you could be using Kit Configuration to set Xcode:

              Screen Shot 2023-05-17 at 15.57.07.png

              1 Reply Last reply
              0

              5/5

              17 May 2023, 13:00

              • Login

              • Login or register to search.
              5 out of 5
              • First post
                5/5
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved