Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Do you HAVE to use Game Center in Unity?

Discussion in 'iOS and tvOS' started by yoonitee, Aug 12, 2014.

  1. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363
    I'm building my Xcode which is fine unless I disable Game Center then I get all sort of build errors. Presumably Unity links to the GameKit library. Does this mean you HAVE to use game kit?
    Does this mean you have to enable Game Center in your App ID?

    Also, if you don't use any of the game centre functionality won't your app get rejected?

    So thats really 3 questions:

    1) Any way to disable Game Center in Xcode Capabilities without getting link errors?
    2) If I leave it enabled but not have Game Center checked in my App ID will my app pass inspection?
    3) If I leave it enabled and have Game Center in my App ID but not use any game centre functionality will it pass inspection?
    4) What if I turn off Game Center in Capabilities but manually add the GameKit library to the build? Will my app get rejected?

    I am currently using Wild Card App IDs since I don't want to have In App purchases enabled.

    Please can someone who has made IOS apps without game centre let me know what settings they used. It's driving me crazy! o_O
     
    Last edited: Aug 12, 2014
  2. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    You should leave Xcode project as Unity generates it. If you don't use Game Center, you don't need to enable it in iTunesConnect. When submitting app it will give you warning that Game Center is linked, but not enabled, but it should not affect submission success.
    If you get any other submission troubles than mentioned, please report ASAP.
     
  3. yoonitee

    yoonitee

    Joined:
    Jun 27, 2013
    Posts:
    2,363

    Ah well I went with advice from another forum which was to turn Game Center off in capabilities and then add game kit library to the library list. Oh well. Guess I'll find out in 7days.
     
  4. fschneider

    fschneider

    Joined:
    May 26, 2014
    Posts:
    42
    @Mantas-Puida , with Unity 5.4.1p1 the Xcode project is generated so that requires the GameCenter capability even though I am not using Game Center at all. Is that desired behaviour? As my dev certificate does not have the capability, this is really annoying - I have to turn off the capability every time Unity has recreated the Xcode project.
     
  5. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Please bugreport it.
     
  6. fschneider

    fschneider

    Joined:
    May 26, 2014
    Posts:
    42
    Thx, unfortunately I'm unable to reproduce this in a demo project - and I can't submit my current real world project. Any idea how I could detect where that capability setting could be coming from?
     
  7. Lszt

    Lszt

    Joined:
    Sep 28, 2015
    Posts:
    38
    Do you use XCode 7 or 8 ?
    Since XCode 8 if you activate Game Center in capabilities it seems to be compulsory to have this in your profiles too.
     
  8. fschneider

    fschneider

    Joined:
    May 26, 2014
    Posts:
    42
    Xcode 8, and that's why I have a problem with Unity putting that capability into the project without me using any framework to require game center. I still could not figure out why this happens.