Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminating app due to -[GLKViewController loadView] loaded the "2-view-3" nib but didn't get a GLKView.'

Tags:

ios

  1. i am using OpenGL framework in first time.Nothing i have written in code.
  2. #import

@interface ViewController : GLKViewController

@end

like image 936
Akshay Avatar asked Dec 11 '25 14:12

Akshay


2 Answers

Delete the view from storyboard and add GLKView instead. It should resolve the problem.

It looks like the xib that has been loaded doesn't contain a GLKView. Make sure you add a UIVIew and change the type to GLKView in the inspector panel on the right hand side of xCode.

like image 21
GuybrushThreepwood Avatar answered Dec 13 '25 04:12

GuybrushThreepwood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!