Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61201

QMake cannot find MacOSX sdk when you install XCode CommandLine tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.7.0, 5.8.0, 5.9.0
    • Build tools: qmake
    • None

    Description

      Apple does provide minimal set of tools for developing applications. It is called XCode Command line tools (less than 1GB). Regular XCode installation requires 20GB of hard which is quite waste when you consider you are going to do everything inside QtCreator and not using XCode and iOS at all, and considering your SSD is only 128GB.

      When you install XCode CommandLine Tools the path for MacOSX SDK will be in /Library/Developer/CommandLineTools/ . But QMake cannot detect MacOSX sdk in that location and does not compile the project no matter what you change in qdevice.pri 

       

      I changed my build system from QMake to CMake and now my project compiles and works fine in the exactly same setting on the same machine.

      I think it would be great if we had a variable in QMake to point to MacOSX sdk location.

      p.s. If you don't have XCode installed you can install XCode Command Line tools via :

      xcode-select --install

       

      p.s. I consider this as bug or a flow, because everything required is present in my system in a way which Apple itself officially provides, and QMake should have been able to detect it.

      Attachments

        Issue Links

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

          Activity

            People

              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              rahimi navidR
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes