ftylitak/qzxing

QZXing Crashing on Qt6.4 on IOS for latest Iphone 13

Opened this issue · 4 comments

I have created the simple App with QML Application. However, I am getting an error as follows:

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.

This error is seen whether I deploy the application on Simulator IPhone 14 or on actual device. And that happens whether I deploy from Qt Creator or from within XCode.

Unable to find a way to get this working, Uploading the test project.
DTest4.zip

I also encountered the same problem. After excluding other modules, I located to qzxing
qt6.4.1 iOS

qt6.2.4
qzxing v3.3.0
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.

A solution has been found for the time being. It is to use static compilation, and then integrate it into the program using static libraries, so that no error will be reported

Qt6.4.1 qzxing 3.3.0