Trying to build Cardboard for iOs and get compile error

Last time I tried to build for iOs (normally am using android) was about 3 months ago. but now I get this error:

Assets\GoogleVR\Scripts\Keyboard\Internal\KeyboardProviderFactory.cs(27,43): error CS0161: ‘KeyboardProviderFactory.CreateKeyboardProvider(GvrKeyboard)’: not all code paths return a value

I have looked at the file but this is beyond my ability. Please help me understand how to fix this as I have got a couple of volunteers with iphones waiting to test for me and am completely stuck!

I am using XR plug in manager on 2019.4.0f1. i used to use the VR plugin and have had a messy migration where i had to do the following to get the new system to work:

Remove VR enabled from build setttings
Remove the legacy Google Cardboard iOS package:
*On Unity, go to “Window” - “Package Manager”, select the “Google VR iOS” package and “uninstall”

  • Delete the file Assets/GoogleVR/Scripts/GvrCardboardHelpers.cs

  • Delete the file Assets/GoogleVR/Scripts/Keyboard/Internal/KeyboardProviders/AndroidNativeKeyboardProvider.cs

  • Open the file /Volumes/OSXData/git/masterchange/Assets/GoogleVR/Demos/Scripts/HelloVR/ObjectController.cs

thanks very much

Do your game need a keyboard? Otherwise it’s perhaps just to delete it.

The KeyboardProviderFactory.cs I found has a comment saying:
// Other platforms not supported, including iOS and Unity versions w/o the native integraiton.

i need people to register so yes they need a keyboard occassionally. I did try to delete the file but that didn’t work either as I get this error:
Assets\GoogleVR\Scripts\Keyboard\GvrKeyboard.cs(298,32): error CS0103: The name ‘KeyboardProviderFactory’ does not exist in the current context

I tried to search for where the script is used in my scene but since it is a system script that didn’t give me much

But it can perhaps be done while not in VR?

I think the keyboard in GoogleVR was for use in Daydream, with the hand controller.
Don’t think it’s impossible though, to adapt it to use the gaze input with the new XR system. But that would probably involve some programming.

Hey there @ , so because Google Cardboard is no longer directly supported by Unity, the Google team has requested you open issues related to Google’s latest Cardboard XR plugin for Unity on Github where their team will address: Issues · googlevr/cardboard · GitHub

ok thanks