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

Game Center issue

Discussion in 'iOS and tvOS' started by mrttis, Aug 2, 2014.

  1. mrttis

    mrttis

    Joined:
    Jul 12, 2012
    Posts:
    64
    Hi, I did not use "game center" in my project but when i built for iOS, unity is creating "game centre" in Capabilities in Xcode. if i "Turn Off" game centre in here, am taking 10 error about game center:

    Undefined symbols for architecture armv7:
    "_OBJC_CLASS_$_GKLeaderboardViewController", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKScore", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKAchievement", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKAchievementDescription", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKLeaderboard", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKPlayer", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_GKErrorDomain", referenced from:
    GameCenter::CreateUserImage(UIImage*, NSError*) in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKAchievementViewController", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    "_OBJC_CLASS_$_GKLocalPlayer", referenced from:
    objc-class-ref in libiPhone-lib.a(GameCenter.o)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    How can i fix this errors?
     
  2. mrttis

    mrttis

    Joined:
    Jul 12, 2012
    Posts:
    64
    I could not fix without "turn off" and used "turn on" game centre.
     
  3. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    Does your game indicate in iTunesConnect that it uses GameKit? I believe that if it does, your game also has to have the GameKit option selected in Xcode as well.