Cordova & ios storyboards

I figured out it’s a problem with how the platform is added. Apparently when cordova copies all the plugins it’s not copying the .storyboard files from the main plugins folder to the platform folder.

Is there a solution for this?


I’m working on integrating mixpanel surveys as a cordova plugin.

Right now when I call the showSurvey method the app crashes because it can’t find the storyboard file.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MPSurvey' in bundle NSBundle <~/Library/Developer/CoreSimulator/Devices/D2C87C75-91BE-41C9-8ADC-55419413CA90/data/Containers/Bundle/Application/CE616565-1D3D-4E08-ACF6-4A68B7856757/> (loaded)'

I updated the mixpanel SDK to:

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MPSurvey" bundle:[NSBundle bundleForClass:Mixpanel.class]];

My question is: How do I set things up so my app can find the storyboard files here?