Adding QtWebView to a project causes deploying of QtWebEngine on macOS
-
My app was rejected from AppStore because it used QtWebEngineCore that access private API. I decided to switch to QtWebView since according to documentation QtWebView uses native APIs when possible on iOS, Android, and macOS. And on Windows and Linux, it depends on QtWebEngine. But after importing QtWebView to a qml file, macdeployqt adds QtWebEngine.framework and QtWebEngineCore.framework to the app's frameworks. I tried to use the option -appstore-compliant when running macdeployqt and use the option QT_WEBVIEW_PLUGIN=native. I saw that libqtwebview_webengine.dylib was not deployed when using the -appstore-compliant option but QtWebEngine.framework and QtWebEngineCore.framework are always deployed. Is it possible to build the project without the QtWebEngine.framework?
-
Hi and welcome to devnet,
Which version of Qt are you using ?
Just for the sake of testing, what happens if you remove these frameworks from the app bundle and then start your application ? -
@Kateryna said in Adding QtWebView to a project causes deploying of QtWebEngine on macOS:
QT_WEBVIEW_PLUGIN=native
Thank you,
Sorry for the late reply, it is because I find that app functionality is broken with QtWebView with -appstore-compliant option. If I remove the frameworks I could start the application however I could not verify functionality. I am using qt 6.2.1.
-
Since Qt 6.3 has been released, can you check if you still have that issue ?