Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt 5.2 Mac Appstore Would Reject QtWebkit - How to Fix it

$
0
0
This is my 3rd day working on this issue. This post serves the purpose of documenting what I tried, keep myself sane, and hopefully collaborate with someone. For those that are using Qt5.2 rc1 QML/QuickControl/Webkit/etc and plan to submit to Mac app store, don’t get your hopes up when you got through the hurdle of deploying QtQuick lib properly. Apple would reject QtWebkit on calling their private API. https://bugreports.qt-project.org/browse/QTBUG-31419#comment-224370 ‘/usr/lib/libSystem.B.dylib’ bootstrap_look_up2 bootstrap_register2 The first one isn’t bad. I changed bootstrap_look_up2 to bootstrap_look_up and brute force removed bootstrap_register2. This downside of this work around is you can use C++ webkit but not qml webkit. QML webkit is too slow anyway and deploying QtWebProcess is a pain. Confirm everything working. /usr/lib/libicucore.A.dylib’ ubrk_getRuleStatus ubrk_setUText ucnv_reset This is the one that drives me up the wall. ICU is open source and heavily used by QtWebkit. www.icu-project.org/ However, Mac QtWebkit links with /usr/lib/libicucore.A.dylib which is meant to be private. The following is what I tried: Dispute with App Store review rep and even opened Tech support case that ICU is open source. No go. Not allowing the usage of private API is a hard rule that cannot be waved. Embed libicucore.A.dylib into bundle. Some app got into Appstore this way in 2012. I submitted it for review and was dancing my way when I found … Aww $!@#, Maverick libicucore is not cross-compatible with 10.8 or older. At first it works, but as soon as WebKit do some form-based Op it would crash. 10.8 libicucore would crash on 10.9 and 10.9 libicucore would crash on 10.8. Tried to compile Apple open source ICU lib. Idea is compile my own to remove OS dependency. Well, the versioning is a mess and they don’t compile. Change QtWebkit WTF (no kidding, that is what they call it) to link with regular open source ICU. Undefined reference of _u_charDirection, … start flying out from libWTF. Found out WTF have its own hard copy of Apple specific ICU. Replace WTF ICU headers with open copy. Now more errors from libJavascriptCore. Turns out libWebCore, libWebkit, and libJavascriptCore also have hard copy of Apple ICU headers.

Viewing all articles
Browse latest Browse all 2113

Trending Articles