Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.15.8 failed to compile for iOS platform on macos 12.3

Qt 5.15.8 failed to compile for iOS platform on macos 12.3

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    MiTem
    wrote on last edited by
    #1

    Due to Python2.7 removal from macos 12.3 I have this error message when trying to build project:

    /bin/sh: /Users/user/Qt/5.15.8/ios/mkspecs/features/uikit/devices.py: /usr/bin/python: bad interpreter: No such file or directory

    Any suggestions on how to resolve this?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MiTem
      wrote on last edited by MiTem
      #2

      Solution found by replacing the first line

      /usr/bin/python

      with externally installed Python2.7 location

      /Users/user/.pyenv/versions/2.7.18/bin/python2.7

      in the "devices.py" file

      1 Reply Last reply
      0
      • ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by
        #3

        just switched to Montery 12.3.1 and run into this bug.
        /usr/bin/python: bad interpreter
        at usr/bin I found /usr/bin/python3
        so I changed first line of devices.py from
        #!/usr/bin/python into #!/usr/bin/python3
        but this doesn't work
        any idea ?

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.9 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        ekkescornerE 1 Reply Last reply
        0
        • ekkescornerE ekkescorner

          just switched to Montery 12.3.1 and run into this bug.
          /usr/bin/python: bad interpreter
          at usr/bin I found /usr/bin/python3
          so I changed first line of devices.py from
          #!/usr/bin/python into #!/usr/bin/python3
          but this doesn't work
          any idea ?

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          with a little help from https://stackoverflow.com/questions/71739870/how-to-install-python-2-on-macos-12-3/71740144 I downloaded and installed Python 2.7.
          then in

          5.15.7/ios/mkspeks/features/uikit/devices.py
          

          I changed first line from

          #!/usr/bin/python
          

          into

          #!/usr/local/bin/python
          

          … and I’m able to compile and build iOS apps again :)
          thx @MiTem

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.9 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          1

          • Login

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