Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29560

iOS: Qt Creator generates XCode project with wrong architecture settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • Qt Creator 11.0.2
    • iOS Support
    • None
    • iOS/tvOS/watchOS

    Description

      Steps to reproduce:

      The build will succeed, deploying to the device will fail.

      The following error occurs:

      17:58:28: The process "/usr/bin/make" exited normally.
      17:58:29: Application install on simulator failed. An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
      Simulator device returned an error for the requested operation.
      An application bundle was not found at the provided path.
      Provide a valid path to the desired application bundle.
      Underlying error (domain=NSPOSIXErrorDomain, code=2):
          Failed to install the requested application
          An application bundle was not found at the provided path. Error while building/deploying project qt-ios-textbox (kit: iOS Simulator toplevel dev)
      When executing step "Deploy to iOS Simulator"
      17:58:29: Elapsed time: 00:10. 

      The error occurs, because Qt Creator generates an XCode project that exposes only Rosetta destinations, while it builds for Apple Silicon.

      QTBUG-101276 refers to the support of Apple Silicon. While this is implemented as the default build architecture, Qt Creator chooses Rosetta as the emulator destination. That's incompatible and makes debugging fail.

      Workaround:

      • Open the .xcodeproj generated by Qt Creator directly in XCode.
      • Select Product->Destination->Destination Architectures->Show Both.
      • repeat for each new project requiring iOS emulation

      Prioritizing to P1, because

      • used to work out of the box => regression
      • iOS emulation with Qt Creator is effectively broken
      • error message does not intuitively point to a potential workaround

      Attachments

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

        Activity

          People

            con Eike Ziller
            axelspoerl Axel Spoerl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes