Instantiating a View Controller from setup()

I’m putting together OF with native Objective C code in iOS by doing the following:

   void ofApp::setup(){
        ViewController * vc;
        vc = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
        vc.view.userInteractionEnabled = NO;
        [ofxiPhoneGetGLView() addSubview:vc.view];
    }

Needless to say, I have a ViewController class with a ViewController.mm file (I’m actually using it to load libpd - I haven’t had good luck with ofxPd). So far it seems to be working fine, and I’ve been able to run the app on a few different iPads. However, when I submitted to TestFlight yesterday, they said it crashed on launch. I have fixed one problem with conflicting autolayout constraints and hope that that solves the problem, but is there anything dodgy with how I’ve gone about how I’ve put together Objectve C and OF here?

Thanks