Mar
13
2010

 

Here are some issues that may happen when upgrading from Cocos2d version 0.71 to 073 (make sure to back-up your project before making changes as these are based on experience and may not work for you):

The screen might turn blank (depending on how you configure your application).

Possible solution:

Remove MainWindow.xib from the project.

An error says “Failed to load NSMainNibFile MainWindow“.

Check the main.m. If it looks like below:

[c]
int main(int argc, char *argv[]) {
    
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
}
[/c]

then change the fourth parameter to the name of your AppDelegate class like below (replace YourClassAppDelegate with the name of your class).

[c]
int main(int argc, char *argv[]) {
    
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     int retVal = UIApplicationMain(argc, argv, nil, @"YourClassAppDelegate");
    [pool release];
    return retVal;
}

[/c]

cpv function calls produces error

cpv has been replaced with ccp. See the definition at CGPointExtension.h, shown below:

[c]
/** Helper macro that creates a CGPoint
 @return CGPoint
 @since v0.7.2
 */
#define ccp(__X__,__Y__) CGPointMake(__X__,__Y__)
[/c]

Comments are closed.