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

Generated .xcodeproj from cmake for iOS is no longer compatible with XCode 15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3
    • Build System: CMake
    • None
    • Hardware: MacBook Air M1 2020
      OS: macOS 14 Sonora
      XCode: 15
      Qt 6.5.3 (installed and updated today)
      projects are created, built and started from QtCreator 11 (also most recent update available in Qt Maintenance tool)
    • iOS/tvOS/watchOS

    Description

      This problem can be reproduced using the current version of Qt Creator with Qt 6.5 for iOS to create a new empty Qt Quick Application without support for Qt DesignStudio (second last choice in the list). When the project is open, hit build for iOS to open it in XCode. The problem is that when this application is built, the generated .xcodeproj-file does not work as documented due to compatibility problems with CMake.

      More details about the problem can be found here: https://gitlab.kitware.com/cmake/cmake/-/issues/24399#note_1340652

      In order to publish the iOS-app, some steps need to be done manually in XCode like setting the app-icon and some other adaptations. Currently this is not possible to do, as the .xcodeproj adhers to such an old standard that the "General" tab in the XCode settings isn't populated / doesn't appear (and this is where the app icon and launch screen are set), more details in the issue indicated above.

      I have studied the documentation here https://doc.qt.io/qt-6/ios.html and https://doc.qt.io/qt-6/ios-platform-notes.html, but I couldn't find any hints on which steps to take to fix this issue and get the "General" tab in the project's settings populated.

      I know this isn't directly a Qt-issue, and mostly goes back to the way how CMake generates this template. However currently I feel stuck and I don't know how to get on to finally publish my project on the AppStore due to this issue.

      I tried to apply some of the workarounds offered in the CMake-issue indicated above, but didn't manage to make it work. All of this is so much simpler for Android, there it just works. For iOS however...

      What I would appreciate in this case would be a complete minimal working example of an iOS app, with all the required workarounds implemented to fix the XCode issue, and with a custom iOS LaunchScreen and app-icon configured. Just like the other Qt-examples, but with all this configuration in place. Based on that it would also be easier to read the documentation and the platform notes where it is sometimes hard to see how things are connected without being able to see a folder with an application.

      Attachments

        1. image-2023-10-04-23-28-53-467.png
          1.05 MB
          Lukas Neuenschwander
        2. image-2023-10-04-23-32-04-708.png
          282 kB
          Lukas Neuenschwander
        3. image-2023-10-12-00-11-19-011.png
          1.07 MB
          Lukas Neuenschwander
        4. image-2023-10-12-00-15-43-908.png
          1.12 MB
          Lukas Neuenschwander
        5. image-2023-10-12-00-24-15-433.png
          1.12 MB
          Lukas Neuenschwander
        6. image-2023-10-12-00-25-26-395.png
          1.13 MB
          Lukas Neuenschwander
        7. image-2023-10-12-13-52-54-559.png
          82 kB
          Lukas Neuenschwander
        8. Skjermbilde 2023-10-12 kl. 00.09.07.png
          1.07 MB
          Lukas Neuenschwander

        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
              randsfjorden Lukas Neuenschwander
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes