Skip to content

Add GameKit GKLocalPlayer_RegisterLocalPlayerListener native export - #105

Closed
antja0 wants to merge 1 commit into
apple:27-betafrom
antja0:add-gamekit-register-local-payer-listener-native-export
Closed

Add GameKit GKLocalPlayer_RegisterLocalPlayerListener native export#105
antja0 wants to merge 1 commit into
apple:27-betafrom
antja0:add-gamekit-register-local-payer-listener-native-export

Conversation

@antja0

@antja0 antja0 commented Aug 18, 2026

Copy link
Copy Markdown

When building for iPhoneSimulator, using IL2CPP in Unity 6000.3.15f1, Xcode 27 / iOS 27, got an error:
Undefined symbol: _GKLocalPlayer_RegisterLocalPlayerListener

Adding native export for GKLocalPlayer_RegisterLocalPlayerListener fixed the issue,
after which I was able to build on Device Hub iOS 27 simulators, with resize mode! 🎉

For the record I don't have much understanding of this, not much at all,
I don't know if this is intended, or even an issue if not using IL2CPP / Simulators etc.

Thanks

Fix error Undefined symbol: _GKLocalPlayer_RegisterLocalPlayerListener when running the game on iPhoneSimulator, using IL2CPP in Unity 6000.3.15f1, Xcode 27 / iOS 27 SDK.

@ryzngard ryzngard left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to fix this! The call itself isn't used so it should be removed from

public static extern void GKLocalPlayer_RegisterLocalPlayerListener();
instead of adding an implementation in the wrapping native code.

@antja0

antja0 commented Aug 20, 2026

Copy link
Copy Markdown
Author

makes sense thanks! new pr in case useful: #106

@antja0 antja0 closed this Aug 20, 2026
@antja0
antja0 deleted the add-gamekit-register-local-payer-listener-native-export branch August 20, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants