I started a project using the Cocos2d only template and now I found out that I'll need joints in my game so I decided to add Box2D to my project.
First I tried adding the Box2d folder and changing all my .m files to .mm but I'm getting 2424 errors after doing that :P
Then I tried creating a new Cocos2D Box2D project and copying all code into it. After changing everything to .mm and fixing the errors I'm able to compile and run it but it crashes right at the start with the console message:
2010-09-01 15:54:31.539 OVB_Box2D[21227:207] *** Assertion failure in UIApplicationMain(), /SourceCache/UIKit/UIKit-963.10/UIApplication.m:1069
2010-09-01 15:54:31.556 OVB_Box2D[21227:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication delegate instance. No class named OVB_Box2DAppDelegate is loaded.'
2010-09-01 15:54:31.568 OVB_Box2D[21227:207] Stack: (
808001701,
805397928,
807551015,
811055109,
814672360,
12816,
12668
)
terminate called after throwing an instance of 'NSException'
Does anyone know how to fix that or a better way to add Box2D to a Cocos2d project?
Thanks.