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. Dismiss Notice

Error : Undefined symbol: _OBJC_CLASS_$_GKLocalPlayer

Discussion in 'Unity Build Automation' started by huiyu0607, Feb 9, 2021.

?

Error : Undefined symbol: _OBJC_CLASS_$_GKLocalPlayer

  1. 1

    0 vote(s)
    0.0%
  2. 2

    1 vote(s)
    100.0%
  1. huiyu0607

    huiyu0607

    Joined:
    Nov 3, 2019
    Posts:
    2
    -
    Engine : Unity 2020.1.10f1
    Using Firebase and Facebook SDK Unity SDK 9.0.0
    Build in iOS and Xcode 12.4

    I have two error during build in Xcode after add Facebook SDK

    1.
    'FBSDKCoreKit/FBSDKCoreKit.h' file not found

    This error just happened at .xcodeproj
    I don’t know why but It didn’t happened if I builded it at .xcworkspace
    But even at .xcworkspace , I still faced the error 2

    2.
    Undefined symbol: _OBJC_CLASS_$_GKLocalPlayer

    I already tried this solution :

    adding GameKit.framework to your xcode prject from
    Targets -> UnityFramework -> General -> Frameworks and Libraries
    -> click + button and find GameKit.framework -> rebuild.

    But it didn’t work for me.
    Also try to add
    libFirebaseCppAuth.a in Compile Sources . But it still failed to build .

    Please help me if you know how to solve it.
     
  2. icyku

    icyku

    Joined:
    Aug 7, 2014
    Posts:
    2