Search code examples
objective-ciosxcodegamekit

Does using GameKit / Game Center in your app increase its binary size?


I'm looking to implement Game Center features into my iOS app; however, I'm not sure how much it will increase my application's binary filesize. There seem to be a lot of features in GameKit which I won't be using because I only want to use achievements and leaderboards. Is there a way to leave out the unused features at compile time?

Thanks in advance!


Solution

  • The actual code for frameworks is not copied into your program. The linker builds symbolic links into your executable code that enables it to find the frameworks on the deployment platform (iPhone, iPad, etc) at runtime.

    The only increase in your program size will come from code you actually write to use the GameKit (for example your leaderboard or P2P code).