Registry / http-networking / pyobjc-framework-gamecenter

pyobjc-framework-gamecenter

JSON →
library12.2pypypiunverified

PyObjC is a bridge between Python and the Objective-C runtime, allowing Python applications to use macOS frameworks and Objective-C classes. `pyobjc-framework-gamecenter` provides Python bindings for Apple's Game Center framework, enabling macOS applications to integrate gaming features such as achievements, leaderboards, and real-time multiplayer. The current version is 12.1, and releases typically align with macOS SDK updates.

pip install pyobjc-framework-gamecenter
INSTALL
IMPORT
SIG · PYOBJC-FRAMEWORK-G
P
pyobjc-framework-gamecenter
http-networkingpythonv12.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.940 runs
build_error
glibc
py 3.103.940 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GameCenter
import GameCenter
import gamecenter
Framework imports typically use PascalCase matching the Objective-C framework name.
GKLocalPlayer
from GameCenter import GKLocalPlayer

This quickstart demonstrates how to import the GameCenter framework and access basic information about the local player. It checks if the player is authenticated and prints their alias. This code must be run on macOS.

import GameCenter import platform if platform.system() == 'Darwin': try: # Access the local Game Center player local_player = GameCenter.GKLocalPlayer.localPlayer() # Check basic properties (will likely be False if not logged in) print(f"GameCenter GKLocalPlayer initialized.") print(f"Is authenticated: {local_player.isAuthenticated()}") print(f"Player alias: {local_player.alias()}") print(f"Is development player: {local_player.isDevelopmentPlayer()}") if local_player.isAuthenticated(): print(f"Authenticated Player ID: {local_player.playerID()}") else: print("Player is not authenticated. Game Center features may be limited.") except Exception as e: print(f"Error accessing Game Center framework: {e}") print("Ensure you are running on macOS and Game Center is configured.") else: print("GameCenter framework is only available on macOS.")
Debug
Known issues
breakingPyObjC v12.0 dropped support for Python 3.9. Projects using Python 3.9 must remain on PyObjC 11.x or upgrade their Python version.
fix
Upgrade to Python 3.10 or newer, or pin pyobjc-framework-gamecenter<12.0.
affects: >=12.0
breakingPyObjC v11.0 dropped support for Python 3.8. Projects using Python 3.8 must remain on PyObjC 10.x or upgrade their Python version.
fix
Upgrade to Python 3.9 or newer, or pin pyobjc-framework-gamecenter<11.0.
affects: >=11.0
gotchaExperimental free-threading support (PEP 703) in Python 3.13 is not supported by PyObjC. Using PyObjC in a free-threaded Python 3.13 environment may lead to undefined behavior or crashes.
fix
Avoid using free-threading features in Python 3.13 when working with PyObjC, or wait for future PyObjC versions that explicitly support PEP 703.
affects: >=10.3, <12.1 (as of current release)
gotchaPyObjC v11.1 aligned its Automatic Reference Counting (ARC) behavior with clang's documentation for initializer methods. This means methods in the 'init' family now correctly steal a reference to self and return a new one. Existing code relying on the prior reference counting model for initializers might experience memory leaks or double-frees.
fix
Review memory management in custom initializers; ensure proper handling of object references, especially when chaining 'init' methods or interacting with `alloc`.
affects: >=11.1
gotchaIn PyObjC v10.3, the ability to use `__init__` for classes that had a user-defined `__new__` method was removed, then partially reintroduced in v10.3.1. If you're subclassing PyObjC classes and implementing custom `__new__` logic, be aware of this interaction.
fix
If encountering issues with `__init__` not being called after `__new__`, ensure you are on v10.3.1 or later, and consider restructuring your object initialization if your `__new__` method relies on PyObjC's default implementation.
affects: 10.3, 10.3.1
Upgrade
Version history
12.2latest on PyPI · released May 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
pyobjc-framework-gamecenter — pip install pyobjc-framework-gamecenter · libregistry