You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compile Error Running 'python3 build.py' for Apple.GameKit #87
../plug-ins/Apple.GameKit/Native/GameKitWrapper/GKGameActivityDelegate.swift:25:17: error: protocol 'GKGameActivityListener' requires 'player(_:wantsToPlay:completionHandler:)' to be available in iOS 13.0 and newer public func player(_ player: GKPlayer, wantsToPlay activity: GKGameActivity, completionHandler completion: @escaping WantsToPlayActivityCompletionHandler) {
I have no experience with swift but looking at the compile issue I made the following change and it was able to compile which has unblocked for the initial testing of my current task.
My understanding here is that GKGameActivityListener is a protocol which is similar in concept to an interface which requires certain functionality to be implemented. The @available is similar to like a define in unity for specific versions for example UNITY_2021_3_OR_NEWER.
So when compiling these scripts targeting iOS 13.0 the function was essentially being stripped. However the interface requires the function. Moving the @available attribute to cover the whole GKWLocalPlayerListener means the interface is not expected anymore and hence it allows to be compiled for the iOS version.
While this allows compilation I have not sure if this is the correct fix or if there are other implications to this. Running on a test device I was at least able to log into game kit so I can continue with my setup / testing for now.
Any assistance would be greatly appreciated. Many thanks.
Hello, I ran into the same problem yesterday when I recompiled the package. The proposed solution works fine for testing, but I would appreciate it if you could fix it. Many thanks.
Activity
lfarkas73 commentedon Apr 9, 2026
Hello, I ran into the same problem yesterday when I recompiled the package. The proposed solution works fine for testing, but I would appreciate it if you could fix it. Many thanks.
danylokorotin commentedon Apr 10, 2026
Thank you so much James - you're doing the lord's work because your solution fixed my 2-hour long headache.
Apple,
... i don't even know where to start.
Fix bad merge (#91)