user3623891
user3623891

Reputation: 45

Unable to instantiate the UIApplication subclass instance

i'm building a SpriteBuilder project and getting the error of:

" * Assertion failure in int UIApplicationMain(int, char **, NSString *, NSString *)(), /SourceCache/UIKit_Sim/UIKit-2903.23/UIApplication.m:2380 Unable to instantiate the UIApplication subclass instance. No class named NSApplication is loaded."

For the main.m code of:

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {

@autoreleasepool {
    int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
    return retVal;
   }
}

What's the cause?

Upvotes: 0

Views: 2801

Answers (1)

user3623891
user3623891

Reputation: 45

XCode is referring to the wrong info.plist file. In Build Settings, the info.plist path should be "Source/Resources/Info.plist" instead of "$(SRCROOT)/Source/libs/cocos2d-iphone/external/Chipmunk/xcode/main-Info.plist". Changing the path fixed it.

Upvotes: 1

Related Questions