iOS versions misunderstanding

Discussion in 'Public Game Developers Forum' started by sigLuca, May 22, 2011.

  1. sigLuca

    sigLuca Well-Known Member

    Hi all,

    i'm almost finishing my iPhone game development, and studying how to add Game Center features (Achievements & Leaderboard). I understand iOS 4.0 is the first release of iOS supporting game center, i also know that iOS4.2.1 is the latest version supported by 3G devices.

    My wishes are supporting the widest pool of devices while offering Game Center services... so "iOS 4.2.1 Deployment target" is the best choice to build whole the applicaton with xcode.


    The question is: how is possible that apps like Angry birds, Cut the rope, Infinity blade SUPPORT GameCenter REQUIRING iOS >=3.0 ???

    I'm a bit confused...

    Thanks in advance,

    sigLuca
    Game Artesan
     
  2. Ovogame

    Ovogame Well-Known Member

    Sep 25, 2010
    570
    0
    0
    Game Developer
    Morestel, France
    Your game can support game center even if you set your ISO Deployement Target to IOS 3.0.

    Deployement target mean: minimum ios supported. But as you are compiling with a recent version of xcode and ios libs (check that your base sdk is set to latest IOS), you'll get game center. But if you are running your game an an old version (not supporting game center) your game will crash. So, to solve this you have to weak link your game center libs (I don't use game center yet, so not sure about witch one it is). Normally, when you init game center (I'm guessing) your code need to handle the case when it doesn't init (will happen on old device).

    Hope it helps...

    JC
     
  3. sigLuca

    sigLuca Well-Known Member

    Thank you for your help. Now it does make more sense...

    sigLuca
    Game Artesan
     
  4. cutterslade

    cutterslade Active Member

    Nov 29, 2008
    39
    0
    0
    Also, be careful with GameCenter and iOS versions. Even though some classes do exist in 4.0, they were not finalized for general use until 4.1.
     

Share This Page