-
Xcode Errors...
Ok, I recently added Game center to my app, just for high scores and all, but when I compile it, it gives me 96 errors... All involving Game center, I'm going to show the main errors and see if any of you know how to fix it... Most of them are one error repeating multiple times, so this should only really be 5 or 6 errors.
Errors:
Unknown type name
Cannot find protocol decleration for: (multiple in this category)
Expected a type
Unused Variable
Use of undeclared identifier
That's it, I did a search on Google, but I didn't know what to do... I wanted to hear it from people who use MMF2.
-
It sounds like the GameCenter extension source files are missing from your project folder.
Rebuild the entire project from MMF and try compiling again.
-
I did that, but there was no change...
-
Anyone know? I've checked the gamekit framework, and I've even rebuilt the application! Do I have to remove the Game Center extensions because they're causing so much trouble?
-
I haven't had this problem, so GameCenter isn't the cause in particular.
What version of Xcode are you running?
-
When you added the Game Center Connect extension did you remember to do a full XCode project export?
If you did a 'Final' export of your project at first and then afterwards only exported the .cci file then the nessecary files for the Game Center Connect extension didn't get included into the project.
Re-export the entire XCode project again and all compile errors should be resolved.
Usually you should only use the 'final' export option when you are ready to submit to Apple's AppStore. Otherwise simply use the regular 'iOS XCode Project' export option as it will include every extension you have that supports iOS. After that you only need to export the .cci file when you change your game.
-
I redid it as a Xcode project not final, and it gave me this warning:
C:\Program Files (x86)\Multimedia Fusion Developer 2\Data\Runtime\Kcruntime.ext
This extension can't be included
My guess is that that error had something to do with it... It didn't appear in the final, but it does appear when building the non-final project from MMF2...
Any clues as to how to fix that?
-
I don't think that's the problem.
I get that error when exporting also, but it compiles in Xcode fine.
-
I don't know then... I really don't want to remove the Game Center object because it would take away a huge piece of the game...
I've fixed a few of them and got it down to 82 errors 8 warnings, but I'm still not sure how to fix them.
-
So if I do take away the Game Center, how can I still implement... Oh wait I can't.
Well if anyone has a clue as to what to do, I would love to hear it! Until then, I'll try and release a non-gamecenter version.