Symbols: 100.0% of Apple's iOS API (51 of 51, exact) · Rows: 2: 2 ✅ · iOS: 26.0+
Area: Games & 3D · Apple: GameSave · Issues: area:games
- Approach: adapted, a Swift overlay (
isim/swift/overlays/GameSave).- iCloud: the isim devices on this computer share one directory as the simulated iCloud:
ISIM_GAMESAVE(default~/.local/share/isim-gamesave; SYSTEM-PROMPTS.md). Each container holds its latest uploaded version and the device that saved it. - The local copy: each app keeps its copy under
Library/Application Support/GameSave/<container>in its data container, with the version it came from. - Syncing:
- Opening a directory syncs it. A newer iCloud version replaces an unchanged local copy.
- Local changes are uploaded by
triggerPendingUpload,finishSyncingandclose, as long as iCloud has not moved on. - When both changed, the directory is
conflictedwith both versions until the app picks one.
- Network and account:
- The
gamesave offline|online|statusscript command (SCRIPTING.md) takes the device off the network, orISIM_GAMESAVE_OFFLINE=1at launch. ISIM_GAMESAVE_ACCOUNT=nonesigns the device out of iCloud: the directory islocal.
- The
- Nothing is sent to Apple.
- iCloud: the isim devices on this computer share one directory as the simulated iCloud:
- Objective-C / C interface:
isim/sdk-src/Frameworks/GameSave/GameSave.h, over the Swift classes.GameSaveErrorDomainis defined inisim/frameworks/GameSave/GameSave.m. - Versus Apple's Simulator:
- Apple's Simulator syncs through the signed-in iCloud account.
- isim syncs only between its own devices.
finishSyncing(statusDisplay:)shows no progress window.
| API / feature | Status | iOS | Notes |
|---|---|---|---|
GameSaveSyncedDirectory (openDirectory(containerIdentifier:), state (Observation), State (ready, offline, local, syncing, conflicted, error, closed), finishSyncing(), finishSyncing(statusDisplay:), triggerPendingUpload(), resolveConflicts(with:), close(), Version (url, isLocal, localizedNameOfSavingComputer, modifiedDate)), GameSaveErrorDomain |
✅ | 26.0 | adapted: the simulated iCloud above. A nil container is the app's default container, iCloud.<bundle identifier>. A conflict's versions are copies the app can read. Tested with two devices (HelloGameSave, test_gamesave) |
GSSyncedDirectory (openForContainerIdentifier:, directoryState (key-value observable), finishSyncing…, resolveConflictsWithVersion:, triggerPendingUploadWithCompletionHandler:, close), GSSyncedDirectoryState, GSSyncedDirectoryVersion, GSSyncState |
✅ | 26.0 | adapted: the classes behind the Swift API, from Objective-C too. The GSSyncState raw values are isim's (proposed); tested (GameSaveObjCTest, test_gamesave_objc) |
Nothing (or not measured yet).