Hi All,
I've followed Tim's instructions but I just can't get OpenFeint to run. I'm using:
Cocos 0.99.2
XCode 3.2.2
iPhone SDK 3.1.3
My cocos project was created using the installable Cocos project template and is very standard. When I add OpenFeint, everything seems to compile fine but I notice that none of the OpenFeint XIB files get compiled. What's more, they're all in the compile sources build phase rather than the copy bundle resources and I get warnings about not being able to compile sourcecode.xib files. I moved them into copy bundle but they still don't get compiled.
*Then* I noticed that the cocos template project has no Interface Builder compiler build options. I guess the assumption is that noone will want XIBs in a Cocos project.
If I run up the app, OpenFeint reports that it was intialized but no UI shows up and it stops my Cocos UI from working. Comment out the call to OF initialization and it works fine.
BTW, I didn't bother renaming all my class files to ".mm" because I saw someone say you only need to do this for classes that directly interact with OF. So, I put all OF interaction in a separate handler class, which seems to run OK (except for the lack of UI).
I'm going to try tracking down the XIB problem next. The other odd thing is that if I install OF in a brand new XCode project and try and build it (putting in all the right build flags) I get a massive number of compiler errors.
Any thoughts ?
Cheers, Andrew.