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

iOS: qmake -spec macx-xcode fails to run compiler (-> opening projects in Qt Creator fails)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9.2
    • 5.9.1
    • Build tools: qmake
    • None
    • iOS
    • iOS/tvOS/watchOS
    • 23e2cc38ffcc725e8b5a4ac76941c278af86e388

      Found from smoke testing 5.9.1 snapshot (#462).

      When I try any of the examples in creator (e.g gallery), they fail to build and install to device with the message:

      Error while building/deploying project gallery (kit: iphoneos-clang Qt 5.9.1 for iOS2)
      When executing step "Deploy to Richard sin iPhone"

      The same for simulator:

      Error while building/deploying project gallery (kit: iphonesimulator-clang Qt 5.9.1 for iOS2)
      When executing step "Deploy to iOS Simulator"

      If I try the same with "iphone-os-clang Qt 5.9.0 for iOS", it works.

      In the General Messages tab, I get a lot of these messages:

      /bin/sh: QMAKE_MAC_SDK_PATH: command not found
      Project ERROR: Cannot run compiler '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Maybe you forgot to setup the environment?
      Error while parsing file /Users/richard/dev/qt-package/Examples/Qt-5.9/quickcontrols2/gallery/gallery.pro. Giving up.
      /bin/sh: QMAKE_MAC_SDK_PATH: command not found
      Project ERROR: Cannot run compiler '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Maybe you forgot to setup the environment?
      Error while parsing file /Users/richard/dev/qt-package/Examples/Qt-5.9/quickcontrols2/gallery/gallery.pro. Giving up.

      But, surely, clang++ exists:

      ll /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
      lrwxr-xr-x  1 root  wheel     5B Dec 23  2016 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -> clang

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

            buddenha Oswald Buddenhagen
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes