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:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
then change the fourth parameter to the name of your AppDelegate class like below (replace YourClassAppDelegate with the name of your class).
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"YourClassAppDelegate");
[pool release];
return retVal;
}
cpv function calls produces error
cpv has been replaced with ccp. See the definition at CGPointExtension.h, shown below:
/** Helper macro that creates a CGPoint @return CGPoint @since v0.7.2 */ #define ccp(__X__,__Y__) CGPointMake(__X__,__Y__)
| Like this article: |
Like permadi.com blog: |
+1 this article: |
|
|

