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

iOS Builds fail in Xcode with b21

Discussion in 'Unity 5 Pre-order Beta' started by franktinsley, Feb 3, 2015.

  1. franktinsley

    franktinsley

    Joined:
    Jul 1, 2010
    Posts:
    130
    When I build my project in Unity 5 b18 it builds in Xcode with no errors. When I build it in Unity 5 b21 and build in Xcode it fails. I use three Prime31 plugins: iOS Game Center, iOS Game Center Turn Based Multiplayer, and iOS Store Kit. All of them are on the latest version.

    Here are the error messages I get in Xcode:

    Undefined symbols for architecture armv7:

    "_OBJC_CLASS_$_GKTurnBasedMatch", referenced from:

    l_OBJC_$_CATEGORY_GKTurnBasedMatch_$_JSON in libGameCenterPlugin.a(GameCenterSerializationHelpers.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKTurnBasedParticipant", referenced from:

    l_OBJC_$_CATEGORY_GKTurnBasedParticipant_$_JSON in libGameCenterPlugin.a(GameCenterSerializationHelpers.o)

    "_OBJC_CLASS_$_GKVoiceChatService", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_OBJC_CLASS_$_GKVoiceChat", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_OBJC_CLASS_$_GKFriendRequestComposeViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_OBJC_CLASS_$_GKMatchmakerViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_GKPlayerAuthenticationDidChangeNotificationName", referenced from:

    -[GameCenterManager init] in libGameCenterPlugin.a(GameCenterManager.o)

    -[GameCenterTurnBasedManager init] in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKScoreChallenge", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterSerializationHelpers.o)

    "_OBJC_CLASS_$_GKMatchRequest", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKTurnBasedMatchmakerViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKAchievementDescription", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    "_OBJC_CLASS_$_GKAchievementViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    "_OBJC_CLASS_$_GKAchievementChallenge", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterSerializationHelpers.o)

    "_OBJC_CLASS_$_GKAchievement", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKChallenge", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    (maybe you meant: _OBJC_CLASS_$_GKChallengeJSONDeserializer)

    "_OBJC_CLASS_$_GKLocalPlayer", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKLeaderboardViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    "_OBJC_CLASS_$_GKPlayer", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    "_OBJC_CLASS_$_GKLeaderboard", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_OBJC_CLASS_$_GKTurnBasedEventHandler", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKChallengeEventHandler", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    "_OBJC_CLASS_$_GKScore", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    objc-class-ref in libGameCenterPlugin.a(GameCenterTurnBasedManager.o)

    "_OBJC_CLASS_$_GKMatchmaker", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterMultiplayer.o)

    "_OBJC_CLASS_$_GKGameCenterViewController", referenced from:

    objc-class-ref in libGameCenterPlugin.a(GameCenterManager.o)

    ld: symbol(s) not found for architecture armv7

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  2. Vibs_appit

    Vibs_appit

    Joined:
    Feb 16, 2014
    Posts:
    53
    see if you have included the proper libraries associated with these methods. If you do, try deleting and re-importing them manually. I faced similar problem in beta17 and adding them manually worked. I am not having that problem with beta21 though.
     
  3. AppsMinistry

    AppsMinistry

    Joined:
    Jan 23, 2015
    Posts:
    1
    Hello!!

    I have similar error before, (I think this error occurs because unity integrate framework system for iOS)!

    Just set options for libGameCenterPlugin.a like in the image

     

    Attached Files:

  4. franktinsley

    franktinsley

    Joined:
    Jul 1, 2010
    Posts:
    130
    Yeah I finally found a fix. I did this step here ( didn't do it alone though to see if it does something ) and I also clicked a fix button in Xcode having to do with something that wasn't getting added to a plist file.

    It was an option to fix the issue that appeared where this red box is in my image.
     

    Attached Files: