Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kpkale opened this issue Oct 25, 2022 · 4 comments
Open

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

kpkale opened this issue Oct 25, 2022 · 4 comments

Comments

@kpkale
Copy link

kpkale commented Oct 25, 2022

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

@angeluslove
Copy link

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

@angeluslove
Copy link

angeluslove commented Nov 21, 2022

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.

@angeluslove
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants