Sign in to follow this  
polyfrag

XCode Info.plist missing NSPrincipalClass

Recommended Posts

polyfrag    2504

I'd post this on the Apple forums but they're down right now.

 

I'm following NeHe's OpenGL tutorials code for XCode/Cocoa and I made a Command-Line project and am using the source provided.

But it said Info.plist was missing or NSPrincipalClass wasn't specified. I tried using an Info.plist from one of my iphone projects. 

I tried renaming it to battlecompworlded-Info.plist (my project name) with NSPrincipalClass set to NSApplication. But still the same error.

What do I do?

Share this post


Link to post
Share on other sites
patrrr    1323

Maybe the source is expecting a bundle to be present for locating some resources? Did you try creating a "Cocoa Application" project instead? Because a Command-Line project doesn't have a bundle.

Share this post


Link to post
Share on other sites
polyfrag    2504

How do I change the class of the NSOpenGLView to my OpenGL view class?

 

[edit] Had to use "custom view" widget instead of what it said in Apple dev tutorial.

Edited by polyfrag

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this