Search Unity

How can I strip GameCenter Module from my iOS builds?

Discussion in 'iOS and tvOS' started by stopiccot_tds, Apr 25, 2019.

  1. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    We are trying to optimize our build size. I want to remove Game Center module cause we are not using it anyway. But there is no Game Center module in the list of built-in packages. Any other way to get it stripped from the build?
     
  2. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    516
    System functionalities are not embedded in your iOS executables, they are linked and consumes no space.

    If you are talking about "UnityEngine.SocialPlatforms.GameCenter", it should already been stripped if you did not call any functions inside that namespace.
     
  3. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    If it's stripped then why do there is Bulk_UnityEngine.GameCenterModule_0.cpp file in my Xcode project? Why Game Center module is mentioned in Build Report?
     
  4. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    516
    You did not state that specific class in your first post.
    If you are certain that you did not make reference to this module you can submit a bug report and let Unity people answer your question more quickly.