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

Running qmake on iOS build fails on macOS 12.3 Monterey

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 9ec05e4f36 (qt/qtbase/dev) 9ec05e4f36 (qt/tqtc-qtbase/dev) 46ba4669b2 (qt/qtbase/6.2) 726b65ba86 (qt/qtbase/6.3) 46ba4669b2 (qt/tqtc-qtbase/6.2) 726b65ba86 (qt/tqtc-qtbase/6.3) dd3389035c (qt/tqtc-qtbase/5.15) 726b65ba86 (qt/tqtc-qtbase/6.3.0)

    Description

      Updating to macOS Monterey 12.3 removed Python 2.7 so Qt5.15.8 iOS build fails immediately to a missing python when running qmake.

       

      10:20:26: Starting: "/Users/<user>/Qt/5.15.8/ios/bin/qmake" /Users/<user>/proj/test/testappqmake/testappqmake.pro -spec macx-ios-clang CONFIG+=iphoneos CONFIG+=device CONFIG+=qml_debug -after
      10:20:27: The process "/Users/<user>/Qt/5.15.8/ios/bin/qmake" exited normally.
      10:20:27: Starting: "/usr/bin/make" -f /Users/<user>/proj/test/build-testappqmake-Qt_5_15_8_for_iOS-Debug/Makefile qmake_all
      /bin/sh: /Users/<user>/Qt/5.15.8/ios/mkspecs/features/uikit/devices.py: /usr/bin/python: bad interpreter: No such file or directory
      /Users/<user>/Qt/5.15.8/ios/mkspecs/features/uikit/xcodebuild.mk:77: *** Could not find any device matching '--platform iOS --minimum-deployment-target 12.0'.. Stop.
      10:20:27: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project testappqmake (kit: Qt 5.15.8 for iOS)
      When executing step "qmake"

       

      More info about python removal: https://macmule.com/2022/01/29/macos-monterey-12-3-will-remove-python-2-7-usr-bin-python/

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              tealamak Tero Alamäki
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes