Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt is dropping the SUPPORTED_PLATFORMS flag from the Xcode Project
Qt 6.12 LTS is out! See what's new in the release blog

Qt is dropping the SUPPORTED_PLATFORMS flag from the Xcode Project

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 2 Posters 2.7k Views 2 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.
  • J Offline
    J Offline
    johnc
    wrote on last edited by
    #1

    I have updated to the latest Xcode and Qt. This has left me with deployment issues to iOS

    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
    		{ generic:1, platform:iOS }
    
    	Available destinations for the "app" scheme:
    		{ platform:macOS, arch:x86_64 }
    		{ platform:macOS, arch:i386 }
    make: *** [xcodebuild-debug-device] Error 70
    

    I can open the generated Xcode project file, set the parameter

    SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
    

    It then builds and deploys in Xcode.

    However, every time I hit build in Qt Creator, it wipes the Xcode project file dropping the platform parameter.

    Is there a way I can get this to stick by putting it in my Qt .pro file, or some other way I can fix this issue?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      johnc
      wrote on last edited by
      #2

      Fixed it by putting this in my project file

      QT_SUPPORTED_PLATFORM.name = SUPPORTED_PLATFORMS
      QT_SUPPORTED_PLATFORM.value = "iphonesimulator iphoneos"
      QMAKE_MAC_XCODE_SETTINGS += QT_SUPPORTED_PLATFORM
      
      
      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Out of curiosity, which version of Qt is that ?

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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          johnc
          wrote on last edited by
          #4

          Qt 5.9.1, Qt Creator 4.4.0.
          It was working fine until I updated Xcode to the latest version ( 9.0.1 ).

          Another person here did the same upgrade and his is working, so I don't think its a necessarily an issue with Qt or Xcode itself. I assume it is some obscure setting bug which is causing it for me, but I have been unable to find it.

          We also compared Xcode project files generated by both boxes. His working version is also missing the SUPPORTED_PLATFORM flag. However, when this project file is opened in Xcode it says the supported platform in the build settings is "iOS", whereas mine says "macos". This is where I have to manually change it each time, or use my fix from above.

          I think I have stumbled on something obscure.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you try to nuke the build folders and delete de .pro.user file ?

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

            J 1 Reply Last reply
            0
            • SGaistS SGaist

              Did you try to nuke the build folders and delete de .pro.user file ?

              J Offline
              J Offline
              johnc
              wrote on last edited by
              #6

              Yep. And created new empty projects as tests.

              1 Reply Last reply
              0

              • Login

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