googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
647 stars 191 forks source link

gvr-ios-sdk integration in a .framework #94

Closed stephanelx closed 8 years ago

stephanelx commented 8 years ago

Hi,

When I build the GVR SDK in a custom framework, it compiles but I got the following run time error if I try to activate the VR Mode on CardboardView:

-[NSURL initFileURLWithPath:]: nil string parameter

If I wrap the command in a try / catch (see code bellow) the VR mode is switching but no more "insert phone animation" and no more "config icon" for changing the HMD parameters. I am really happy about that because on Android, it was possible to deactivate these features but not on iOS. Now my problem is that I cannot trigger the HMD config programmatically so the user is stuck with the default cardboard settings.

@try {
        [_cardboardView setVrModeEnabled:true];
    }
    @catch (NSException *exception) {
        NSLog(@"%@", exception.reason);
    }  

I suspect the error is caused by the GVR framework trying to find the HMD profile in main app bundle but it's only a guess.

Please let me know if this is a bug or if I am doing something wrong.

Thank you

stephanelx commented 8 years ago

I just realized the issue has already been submitted: https://github.com/googlevr/gvr-ios-sdk/issues/62