Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
Qt Creator 11.0.2
-
None
Description
Steps to reproduce:
- Download or create a new iOS project, e.g. https://github.com/martinburchell/qt-aboutqt
- configure, compile and run the project on an existing iOS emulator
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