From 5cd1c11c95cb8c0f67321a1b3068f2257bae48c3 Mon Sep 17 00:00:00 2001 From: antja0 <47383357+antja0@users.noreply.github.com> Date: Thu, 20 Aug 2026 19:46:12 +0300 Subject: [PATCH] Remove GameKit GKLocalPlayer_RegisterLocalPlayerListener Fix error Undefined symbol: _GKLocalPlayer_RegisterLocalPlayerListener when running the game on iPhoneSimulator, using IL2CPP in Unity 6000.3.15f1, Xcode 27 / iOS 27 SDK. --- .../Assets/Apple.GameKit/Source/GKLocalPlayer.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/GKLocalPlayer.cs b/plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/GKLocalPlayer.cs index 092ace61..36d0c7d5 100644 --- a/plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/GKLocalPlayer.cs +++ b/plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/GKLocalPlayer.cs @@ -473,8 +473,6 @@ private static class Interop public static extern void GKLocalPlayer_LoadDefaultLeaderboardIdentifier(IntPtr pointer, long taskId, SuccessTaskCallback onSuccess, NSErrorTaskCallback onError); [DllImport(InteropUtility.DLLName)] public static extern void GKLocalPlayer_SetDefaultLeaderboardIdentifier(IntPtr pointer, long taskId, IntPtr identifierPtr, SuccessTaskCallback onSuccess, NSErrorTaskCallback onError); - [DllImport(InteropUtility.DLLName)] - public static extern void GKLocalPlayer_RegisterLocalPlayerListener(); #if !UNITY_TVOS [DllImport(InteropUtility.DLLName)] public static extern void GKLocalPlayer_SaveGameData(IntPtr pointer, long taskId, IntPtr nsDataPtr, string name, SuccessTaskCallback onSuccess, NSErrorTaskCallback onError);