Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.3, 6.8.2
-
None
-
-
430ba7c0f (dev), 9fbb8e009 (6.9), 835c54bc1 (6.8)
Description
- Create a Qt Quick app and build it.
- Open the project in Xcode.
- Add a swift file to the project.
File.swift
import Foundation
- Build it and deploy it on a device.
- The app crashes at startup:
Error: You are creating QApplication before calling UIApplicationMain. If you are writing a native iOS application, and only want to use Qt for parts of the application, a good place to create QApplication is from within 'applicationDidFinishLaunching' inside your UIApplication delegate.
Adding a Swift file to the project is needed so that I can include in my apps the Firebase library and other 3rd party ad libraries (e.g. Meta). This used to work in Qt5 and in some previous versions of Qt6. The last time it worked was with Qt 6.7.2.