For me, the easiest solution would probably be to look for the cocos files in Xcode that contain UIWebView (using simple project-scoped search) and remove them from the project (UIWebViewImpl-ios.h and UIWebViewImpl-ios.mm and maybe some other header files - up to you. I think UIWebViewImpl-ios.mm is the only file that actually uses UIKit’s UIWebView, but you’d have to take a look around to confirm that). As well as appropriate references to them, e.g. you might have to remove the #include “ui/UIWebView.h” from the CocosGUI.h if you throw away all the UIWebView headers.
You might also just try to comment out some code in UIWebViewImpl-ios.mm so it doesn’t use Apple’s UIWebView.
Ok i remove all the file and about the framework? I’m afraid to destroy my project since it took a lot of time to configure all (I use raknet, facebook and sdkbox)
Really need help, my app is still rejected because of uiwebview I removed UIWebViewImpl-ios.mm but it is still rejected, do I need to remove a package or something like this?
how can I check if sdkbox use uiwebview? I use sdkbox for iap and facebook.
I’m sorry, I don’t think I can help much here. SDKBox doesn’t seem to be open-source. Maybe you should ask them whether they’ve removed UIWebView from their iap and social frameworks?
Thank you for your reply, Ok It looks it is a know problem so why there is no more helps about that since they know since last year all games will be rejected with the library provided.
How can I know which framework include uiwebview?
when I search for ‘uiwebview’ in my project I only have cocos lib.
@fabrice cocos2d-x already fixed it in github but not released. If you removed UIWebViewImpl-ios.mm, then cocos2d-x doesn’t use webivew anymore. About sdkbox, i can help to ask if it uses UIWebView or not.
~/test/cpp317/proj.ios_mac [master] $ grep "UIWebView" -rn .
Binary file ./Bolts.framework/Bolts matches
./Bolts.framework/Headers/BFWebViewAppLinkResolver.h:16: A reference implementation for an App Link resolver that uses a hidden UIWebView
Binary file ./GoogleMobileAds.framework/GoogleMobileAds matches
Hello and thanks for the reply. I use cocos2d-x, raknet, and sdkbox.
I removed all uiwebview from cocos2d (OK with this), upgraded to last sdkbox who still use with bolts.framework. So I have no choice to remove also bolts.framework… my app is running but I do not know what will happen because of the remove of bolts.
Hey guys! Anyone figured this one out? 3.17.2 being rejected by Apple. Removed UIWebViewImpl-ios.mm and still same issue. It must be coming from SDKBox?