-
Notifications
You must be signed in to change notification settings - Fork 485
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
iOS deprecated UIWebView #718
Comments
Same issue report to my email from Apple when upload App to Store
|
Any updates on this? Is it really react viro using it or is it something else? I can't really seem to find any other culprit. |
It turns out this was Google Cardboard (their iOS GVR SDK) that had this dependency. If Google fixes this on their end then we'll update with the correction; otherwise we'll have to remove support for Google Cardboard. |
Is it possible to shrink down / remove iOS dependencies if they are not needed? Similar to what you've done with Android that some dependencies can be omitted. Truth is we only use the library to support 360 images. |
Hi All. Does anyone know if there is a resolution here? seems like any new app submissions will be rejected from apple until this is resolved. |
Is apple rejecting uploads already? Are we all sure the deprecation warning comes from here? Should be as simple as updating any google's reference. I believe google has updated their SDKs already. |
Are these libraries the culprits maybe? https://github.com/viromedia/virocore/blob/master/ios/Podfile Note that they are not even from viro react, but rather the core. When using the static lib, I'm not even sure if updating this is possible without having a new build of the static libs. |
The last email i got from apple regarding my dev app was that Digging deeper as radvani mentioned it seems to be GVRSDK which has the issue. Going thru the viro source code and running |
Yes, Google just open sourced Cardboard but it looks like they’re effectively deprecating it. We may need to release a version without Cardboard to mitigate this.
Raj
… On Nov 12, 2019, at 12:28 PM, vpallegar ***@***.***> wrote:
The last email i got from apple regarding my dev app was that Apple will stop accepting submissions of apps that use UIWebView APIs - so i'm assuming any new app submissions will be rejected.
Digging deeper as radvani mentioned it seems to be GVRSDK which has the issue. Going thru the viro source code and running grep -r UIWebView * on the Pods folder (Virocore/ios/Pods) it returns Binary file GVRSDK/Libraries/libGVRSDK.a matches...and looks like google does not support that anymore, telling users to upgrade cardboard instead. I tried pulling out the GVRSDK dependency but that causes part of the code to no longer work when recompiling viro.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@radvani I checked the open source Cardboard library, and I don't get the impression they are trying to abandon the project. We are on a tight release schedule with our current project, but we will keep relying on viro, so eventually we will have to get rid of the UIWebView depedency before we are unable to release updates for our app. Apparently the UIWebView dependency also no longer exist in the new Cardboard library. Can you please point me in the general direction of where to start to replace the GVRSDK libary with the new Cardboard library in the viro core? I will take a swing at it as soon as I can. Edit: |
Are there any news about this issue? |
I am facing the same problem, any solution and how to replace the GVRSDK |
@TwR-Slice did you solve the problem. |
Any updates on this? Looks like Apple will stop accepting uploads with UIWebView starting in April 2020 (i.e., now). This has just become a breaking change and needs immediate attention. Any guide on how to update GVRSDK is welcome. |
I've been trying to upgrade react's version to 0.61.5 in this branch (https://github.com/cristianoccazinsp/viro/tree/rn-upgrade-attempt) alongside updating google SDKs for iOS to remove some deprecation warnings. Compilation of the new android aar file seems fine, but the iOS migration step is harder than I thought and I can't seem to make it compile with the new podspec file. If someone is interested in taking it from there... I'm most likely not putting more effort into this and will be searching for another 360 viewer shortly. |
Well, as much as I tried, fixing the iOS project to work with the new RN pods setup seems impossible. Will pass on this one. Also, seems like updating Google's SDK won't fix the issue since it hasn't been updated in some time. |
Guys any update on this issue? Apple already stopped receiving the UIWebView API. Now we are unable to upload the app |
@dthian please fix the OS deprecated UIWebView issue |
Hey @ManigandanRaamanathan, unfortunately I'm not actively working on Viro at the moment. Having said that, Viro + ViroCore is open sourced now, so you should be able to go in and patch the source to remove the UIWebview. Good luck! |
I don't think there's any way to patch this. Viro uses google VR SDK, which is deprecated and hasn't been updated in ages. To fix it you need to upgrade to the new google cardboard API; most likely a lot of work. |
Another way as well (if you are using AR) is to just remove GVR from the build, and comment out (or abstract out) the components that are using it. The ARCode path vs VR Code path is different, so that should work and is easier to do. |
Hi @dthian, Thanks for the pointer! For an AR-only app, would you have any practical advice as to how does one remove GVR from the build, and find out which components are using it? I've been trying a few different search and replace approaches, and tried removing libraries from the Podfile, directly from Xcode, ... but the warning always remained. |
@silvainSayduck @dthian may I know how to remove GVR out? Im new to native iOS |
@ManigandanRaamanathan @silvainSayduck I haven't gotten into the core of this library at all, but my best guess would be to follow the "Manual Building of the Renderer" instructions here, remove GVR there, and make sure to do 3b in the iOS section to build the ViroKit_static_lib. Then, use this result in your node_modules instead of the old ViroKit. If after doing this, you can run |
@mbryk for the time being I'm using this commits v2.18.0 from @HedwigAR https://github.com/mendix/viro/pull/1 |
Hi, Due to #835, I had to use a Viro custom build, and thus tried to also not reference to UIWebView that will not be accepted on the App Store by Apple anymore after December 2020, but it didn't work... Would anyone be able to explain why my approach did not work? Thanks in advance! Here are the steps I followed, losely inspired from several issues and forks and the various Viro README instructions.
If this also helps, here are my fixed Huge thanks to all the contributors that enabled me to patch this together, and especially @dthian, @HedwigJDoets and @HedwigAR! |
Awesome @silvainSayduck I just ran into this issue yesterday. You saved me! Thank you very much! |
@silvainSayduck any thoughts on making the build process easier? With RN >= 0.60, everything can be migrated to pods (including manually linked RN libraries). Ideally, one project should include the other with just a podfile configuration rather than including pre-built files. A similar issue happens with Android. There's one build step that is linked directly against a specific RN version, which is then copied over to the other project. Quite messy. Take this lib for example, multiple dependencies, all resolved nicely, even swift dependencies: https://github.com/lightbasenl/react-native-panorama-view |
@cristianocca Unfortunately, as I stated, I know very little about build processes, both for Xcode and Android... The above steps were the results of a painful trial-and-error approach, and I'm not sure they all make sense at all... @namquyuit do you mean that for you, my steps above worked to solve this issue (references to UIWebView which will be refused by Apple from December 2020), or the crashes on iOS 13.4+ (#835)? |
@silvainSayduck , thank you for sharing. I tried your steps and copy pasted the libViroReact.a file and ViroRenderer folder respectively. However, after that, when I did
|
@ranjanpoudel1234 My way was much easier, I did not modify the native static_lib's. I simply installed directly from this branch in package.json https://github.com/mendix/viro/pull/1 and it starts working fine. @HedwigAR have already removed the GVR contents and rebuilt the static_lib in that branch. |
@silvainSayduck I used your shared library files in Google Drive and patched to my project, it passed Apple rejection. |
@ManigandanRaamanathan I am developing a VR related application, so if I remove GVR will it not remove the entire VR support in the application? |
Thank you so much ! |
I didn't work for me, but I guess it means that some other library I use has some reference to UIWebView too... Thanks for the confirmation :) |
We've also attempted removing GVR from the renderer in ViroCore, you guys could also try the built one from the pipeline here. |
@ManigandanRaamanathan can you please tell how I install the version 2.18.0 ? I tried to run yarn add [email protected], but there is no option for this one. I am stucking at this issue now. |
@dthian thank you for this amazing project! For the GVR removal I was able to get through the UIWebView issue in my RN 0.62.2 project last night - details here #852 (comment) |
hi , i try your fixed files , and apple not accept :( |
@ktemby have you worked with the Vr feature in the react-viro? |
same issue for me, please help! |
Environment
Please provide the following information about your environment:
Description
iOS is removing UIWebView and any submitted application will now receive a warning. After a bunch of updates, it seems like this library is the final culprit still using this.
grep -r UIWebView node_modules/*
Can we have an update that removes this?
The text was updated successfully, but these errors were encountered: