Symbols: 77.0% of Apple's iOS API (718 of 933, exact) · Rows: 11: 9 ✅ 2 ❌ · iOS: 8.0+
Area: Data & persistence · Apple: CloudKit · Issues: area:data
- Adapted: a local JSON store under
$ISIM_DATA/Library/isim/CloudKit/<container>/, with a simulated account and in-process push payloads. There is no iCloud. - Objective-C / C interface:
#import <CloudKit/CloudKit.h>,-framework CloudKit(#573).- The classes are the overlay's under Apple's names and selectors, with nested classes as Objective-C names them:
CKRecordID,CKRecordZoneID,CKReference,CKQueryCursor,CKOperationConfiguration,CKFetchRecordZoneChangesConfiguration,CKShareParticipant,CKShareMetadata,CKUserIdentityLookupInfo,CKNotificationInfo. - Record values are Objective-C objects (
objectForKey:and keyed subscripts). - The operations' blocks are Apple's
(item, object, NSError)forms. - The enums and option sets are their C types.
CKOperationis anNSObject, not anNSOperation: add operations to a container or database (addOperation:).CKSyncEngineitself is Swift-only; its enums have headers.
- The classes are the overlay's under Apple's names and selectors, with nested classes as Objective-C names them:
| API / feature | Status | iOS | Notes |
|---|---|---|---|
CloudKit: containers, account (CKContainer.default(), accountStatus, userRecordID, ISIM_ICLOUD=noAccount) |
✅ | ≤17 | local, no iCloud sync: a simulated account; ISIM_ICLOUD=noAccount|restricted|temporarilyUnavailable changes the status, and private/shared operations (and public writes) fail with CKError.notAuthenticated. Default container iCloud.<bundle id>. Tested: HelloCloudKit |
CloudKit: records (CKRecord typed values, CKAsset, CKRecord.Reference, CLLocation, lists, changedKeys, change tags, dates, encodeSystemFields) |
✅ | ≤17 | stored per container/database as JSON in $ISIM_DATA/Library/isim/CloudKit/<container>/; assets copied into the store; .deleteSelf references cascade; values read back as Objective-C-style values (as? String/Int/Double/Date/[String]). encryptedValues are stored like other fields (not encrypted at rest). Tested: HelloCloudKit (relaunch persistence) |
CloudKit: CKDatabase save/fetch/delete (+ async), records(matching:), modifyRecords, CKQuery (NSPredicate + sort), CKQueryOperation (cursor, resultsLimit), CKModifyRecordsOperation (save policies, atomic), CKFetchRecordsOperation, CKError |
✅ | ≤17 | serverRecordChanged with server/client records, .changedKeys/.allKeys, atomic batches in custom zones (batchRequestFailed), unknownItem for missing records/types, partialFailure. Predicates use isim's NSPredicate (no distanceToLocation:); CKOperation is not an NSOperation (isim has none): add operations to a database/container. Tested: HelloCloudKit |
CloudKit: zones, change tokens (CKRecordZone, CKFetchDatabaseChangesOperation, CKFetchRecordZoneChangesOperation) |
✅ | ≤17 | custom zones in the private database, zone changes/deletions since a persistent CKServerChangeToken, resultsLimit paging and moreComing. Tested: HelloCloudKit (database + zone changes) |
CloudKit: subscriptions (CKQuerySubscription, CKDatabaseSubscription, CKRecordZoneSubscription, CKNotification) |
✅ | ≤17 | saved, fetched and deleted persistently; matching changes made in this process send a CloudKit-style push payload in-process to application(_:didReceiveRemoteNotification:fetchCompletionHandler:). Adapted: no APNs, cross-process delivery or alert banner. Tested: HelloCloudKit (query + database) |
CloudKit: sharing (CKShare with url, CKShare.SystemFieldKey, CKShare.Metadata, CKFetchShareMetadataOperation, CKAcceptSharesOperation, CKContainer.shareMetadata(for:) / shareMetadatas(for:) / fetchShareMetadata(with:) / accept(_:), CKAllowedSharingOptions with CKSharingParticipantPermissionOption / CKSharingParticipantAccessOption, CKSystemSharingUIObserver, UICloudSharingController), user discovery |
✅ | ≤17 | adapted locally: shares keep their owner, public permission and participants in the store; a saved share's url names its container, zone and record, so any app on the device reads its metadata (the current user's role, permission and status, the owner, the root record on request) and accepts it as the device's simulated Apple Account (AppleAccount/account.json): an invited participant becomes accepted, anyone else joins as a public user when the share has a public permission, and the owner accepting is a no-op. Participants found by email get the record name that account has when signed in. Shared records stay in the owner's database (isim's databases are per container, not per account), and no invitation is sent. UICloudSharingController is iOS's sheet (adapted): the item's thumbnail and title, People (each participant's status and permission), Share Options (who can access and their permission, as availablePermissions allows), Copy Link and Stop Sharing, in the emulated iOS version's bars; CKSystemSharingUIObserver hears it save a share (Done saves the options changed in it) or stop sharing (which deletes the share). CKAllowedSharingOptions are kept. Tested: HelloCloudKit (tests/ui/test_cloudkit.py: the owner, an invited participant and a public user open the link; the sheet shows the share, changes the link's permission, saves and stops sharing). Opened share links reach the app of the container through UIKit (UIKit, #575), in Swift through the delegate methods too. CKShare.Metadata is the top-level CKShareMetadata of the _CKShareMetadata module, where Swift resolves UIKit's declarations (#630; its Swift ABI changed in 0.28). CKShare.SystemFieldKey's title, thumbnailImageData and shareType are CKRecord.FieldKey constants, as on iOS (share[CKShare.SystemFieldKey.title]). Tested (CloudKitShareSwiftTest: the title, the metadata archived and decoded) |
CloudKit: CKFetchRecordZonesOperation, CKFetchSubscriptionsOperation (and their fetchAll… forms), CKOperation.group |
✅ | ≤17 | adapted: run against the local store, with per-item and final result blocks; an operation's group (CKOperationGroup) is kept. Tested: HelloCloudKit |
CloudKit: CKSyncEngine (Configuration, State with Serialization, PendingRecordZoneChange, PendingDatabaseChange, RecordZoneChangeBatch, FetchChangesOptions / SendChangesOptions and their scopes, FetchChangesContext / SendChangesContext, SyncReason, Event and its twelve kinds, CKSyncEngineDelegate with nextFetchChangesOptions), CKDatabase.RecordZoneChange, CKDatabase.DatabaseChange, CKOperationGroup, the CKSyncEngine… enums |
✅ | 17.0 | adapted: the "server" is the device's local CloudKit database, so engines (and apps) on the device that use the container sync with each other and nothing reaches iCloud. Fetches report zone changes, then each zone's record changes since the engine's per-zone tokens (prioritized zones first; an engine's own writes are not handed back); sends save and delete pending zones first, then ask the delegate for batches until it has none, reporting failures as CKErrors (serverRecordChanged for stale records); accountChange reports the simulated account signing in, out or switching. With automaticallySync, the engine fetches when it starts and sends 0.2 s after pending changes are added (nextFetchChangesOptions is asked for those). Tokens and pending changes are in the opaque serialization. cancelOperations() cancels scheduled syncs. The CKSyncEngine… enums are Swift @objc enums with proposed raw values (their Objective-C headers: CloudKit/CKSyncEngine.h). Tested: HelloCloudKit (tests/ui/test_cloudkit.py: two engines, a stale save, a restored engine syncing a new zone automatically) |
Objective-C: CKContainer (+defaultContainer, +containerWithIdentifier:, addOperation:, databaseWithDatabaseScope:, accountStatusWithCompletionHandler:, share metadata and participants), CKDatabase's convenience methods (saveRecord:, fetchRecordWithID:, deleteRecordWithID:, performQuery:inZoneWithID:, zones, subscriptions), CKRecord (keyed subscripts, objectForKey:, encryptedValues, encodeSystemFieldsWithCoder:, setParentReferenceFromRecord(ID):), CKRecordID, CKRecordZone(ID), CKReference, CKAsset, CKQuery, the operations with Apple's blocks (recordMatchedBlock, perRecordSaveBlock / perRecordDeleteBlock, perRecordZoneCompletionBlock / fetchRecordZonesCompletionBlock, recordWasChangedBlock / recordZoneFetchCompletionBlock, …), subscriptions and +notificationFromRemoteNotificationDictionary:, CKShare (URL), CKShareMetadata, CKAllowedSharingOptions, CKErrorDomain / CKErrorCode and its keys, the CKSyncEngine… enums |
✅ | ≤17 | adapted: the overlay's classes (above); per-item blocks are kept per operation and called from the Swift result blocks. Tested (CloudKitObjCTest, test_cloudkit_objc: typed values, a conflict and partial failures, a paged query, zone and database changes with an archived token, subscriptions with an in-process push to the Objective-C app delegate, a share and its metadata) |
| Types not yet in isim (iOS 17 and earlier) | ❌ | ≤17 | not implemented, found by the 2026-10 sweep: CKAllowedSharingOptions, CKFetchRecordZonesOperation, CKFetchShareMetadataOperation, CKFetchShareParticipantsOperation, CKFetchSubscriptionsOperation, CKFetchWebAuthTokenOperation, CKLocationSortDescriptor, CKOperationGroup, CKShareTransferRepresentation, CKSystemSharingUIObserver (10 types; with their members under "Not yet in isim") |
| Types not yet in isim (iOS 26) | ❌ | 26.0 | not implemented, found by the 2026-10 sweep: CKShareRequestAccessOperation (1 type; with its members under "Not yet in isim") |
215 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
CKAsset.ExportedAssetIDconvenience init(importing: CKAsset.ExportedAssetID)func allLongLivedOperationIDs() async throws -> [CKOperation.ID]CKContainer.ApplicationCKContainer.Application.PermissionBlockCKContainer.Application.PermissionsCKContainer.Application.PermissionStatusfunc configuredWith<R>(configuration: CKOperation.Configuration?, group: CKOperationGroup?, body: (CKContainer) throws -> R) rethrows -> Rfunc configuredWith<R>(configuration: CKOperation.Configuration?, group: CKOperationGroup?, body: (CKContainer) async throws -> R) async rethrows -> Rfunc fetchAllLongLivedOperationIDs(completionHandler: ([CKOperation.ID]?, (any Error)?) -> Void)func fetchLongLivedOperation(withID: CKOperation.ID, completionHandler: (CKOperation?, (any Error)?) -> Void)func fetchShareParticipants(forEmailAddresses: [String], completionHandler: (Result<[String : Result<CKShare.Participant, any Error>], any Error>) -> Void)func fetchShareParticipants(forPhoneNumbers: [String], completionHandler: (Result<[String : Result<CKShare.Participant, any Error>], any Error>) -> Void)func fetchShareParticipants(forUserRecordIDs: [CKRecord.ID], completionHandler: (Result<[CKRecord.ID : Result<CKShare.Participant, any Error>], any Error>) -> Void)func longLivedOperation(for: CKOperation.ID) async throws -> CKOperation?func requestShareAccess(for: [URL]) async throws -> [URL : Result<Void, any Error>]func shareParticipants(for: [CKUserIdentity.LookupInfo]) async throws -> [CKUserIdentity.LookupInfo : Result<CKShare.Participant, any Error>]func shareParticipants(forEmailAddresses: [String]) async throws -> [String : Result<CKShare.Participant, any Error>]func shareParticipants(forPhoneNumbers: [String]) async throws -> [String : Result<CKShare.Participant, any Error>]func shareParticipants(forUserRecordIDs: [CKRecord.ID]) async throws -> [CKRecord.ID : Result<CKShare.Participant, any Error>]CKContainer_Application_PermissionBlockCKContainer_Application_PermissionsCKContainer_Application_PermissionStatusfunc configuredWith<R>(configuration: CKOperation.Configuration?, group: CKOperationGroup?, body: (CKDatabase) throws -> R) rethrows -> Rfunc configuredWith<R>(configuration: CKOperation.Configuration?, group: CKOperationGroup?, body: (CKDatabase) async throws -> R) async rethrows -> Rfunc databaseChanges(since: CKServerChangeToken?, resultsLimit: Int?) async throws -> (modifications: [CKDatabase.DatabaseChange.Modification], deletions: [CKDatabase.DatabaseChange.Deletion], changeToken: CKServerChangeToken, moreComing: Bool)func delete(withRecordZoneID: CKRecordZone.ID, completionHandler: (CKRecordZone.ID?, (any Error)?) -> Void)func fetch(withRecordIDs: [CKRecord.ID], desiredKeys: [CKRecord.FieldKey]?, completionHandler: (Result<[CKRecord.ID : Result<CKRecord, any Error>], any Error>) -> Void)func fetch(withRecordZoneID: CKRecordZone.ID, completionHandler: (CKRecordZone?, (any Error)?) -> Void)func fetch(withRecordZoneIDs: [CKRecordZone.ID], completionHandler: (Result<[CKRecordZone.ID : Result<CKRecordZone, any Error>], any Error>) -> Void)func fetch(withSubscriptionIDs: [CKSubscription.ID], completionHandler: (Result<[CKSubscription.ID : Result<CKSubscription, any Error>], any Error>) -> Void)func fetchDatabaseChanges(since: CKServerChangeToken?, resultsLimit: Int?, completionHandler: (Result<(modifications: [CKDatabase.DatabaseChange.Modification], deletions: [CKDatabase.DatabaseChange.Deletion], changeToken: CKServerChangeToken, moreComing: Bool), any Error>) -> Void)func fetchRecordZoneChanges(inZoneWith: CKRecordZone.ID, since: CKServerChangeToken?, desiredKeys: [CKRecord.FieldKey]?, resultsLimit: Int?, completionHandler: (Result<(modificationResultsByID: [CKRecord.ID : Result<CKDatabase.RecordZoneChange.Modification, any Error>], deletions: [CKDatabase.RecordZoneChange.Deletion], changeToken: CKServerChangeToken, moreComing: Bool), any Error>) -> Void)func modifyRecords(saving: [CKRecord], deleting: [CKRecord.ID], savePolicy: CKModifyRecordsOperation.RecordSavePolicy, atomically: Bool, completionHandler: (Result<(saveResults: [CKRecord.ID : Result<CKRecord, any Error>], deleteResults: [CKRecord.ID : Result<Void, any Error>]), any Error>) -> Void)func modifyRecordZones(saving: [CKRecordZone], deleting: [CKRecordZone.ID], completionHandler: (Result<(saveResults: [CKRecordZone.ID : Result<CKRecordZone, any Error>], deleteResults: [CKRecordZone.ID : Result<Void, any Error>]), any Error>) -> Void)func modifySubscriptions(saving: [CKSubscription], deleting: [CKSubscription.ID]) async throws -> (saveResults: [CKSubscription.ID : Result<CKSubscription, any Error>], deleteResults: [CKSubscription.ID : Result<Void, any Error>])func modifySubscriptions(saving: [CKSubscription], deleting: [CKSubscription.ID], completionHandler: (Result<(saveResults: [CKSubscription.ID : Result<CKSubscription, any Error>], deleteResults: [CKSubscription.ID : Result<Void, any Error>]), any Error>) -> Void)func recordZone(for: CKRecordZone.ID) async throws -> CKRecordZonefunc recordZoneChanges(inZoneWith: CKRecordZone.ID, since: CKServerChangeToken?, desiredKeys: [CKRecord.FieldKey]?, resultsLimit: Int?) async throws -> (modificationResultsByID: [CKRecord.ID : Result<CKDatabase.RecordZoneChange.Modification, any Error>], deletions: [CKDatabase.RecordZoneChange.Deletion], changeToken: CKServerChangeToken, moreComing: Bool)func recordZones(for: [CKRecordZone.ID]) async throws -> [CKRecordZone.ID : Result<CKRecordZone, any Error>]func subscriptions(for: [CKSubscription.ID]) async throws -> [CKSubscription.ID : Result<CKSubscription, any Error>]init(coder: NSCoder)static var alreadyShared: CKError.Codestatic var assetFileModified: CKError.Codestatic var assetFileNotFound: CKError.Codestatic var assetNotAvailable: CKError.Codestatic var badContainer: CKError.Codestatic var badDatabase: CKError.Codecase participantAlreadyInvitedstatic var constraintViolation: CKError.Codestatic var incompatibleVersion: CKError.Codestatic var managedAccountRestricted: CKError.Codestatic var missingEntitlement: CKError.Codestatic var participantAlreadyInvited: CKError.Codestatic var participantMayNeedVerification: CKError.Codestatic var referenceViolation: CKError.Codestatic var requestRateLimited: CKError.Codestatic var serverRejectedRequest: CKError.Codestatic var serverResponseLost: CKError.Codestatic var serviceUnavailable: CKError.Codestatic var tooManyParticipants: CKError.Codestatic var userDeletedZone: CKError.Codestatic var zoneBusy: CKError.Codelet CKErrorUserDidResetEncryptedDataKey: Stringvar recordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock: ((CKRecordZone.ID) -> Void)?var perRecordProgressBlock: ((CKRecord.ID, Double) -> Void)?init?(coder: NSCoder)convenience init(share: [URL])CKFetchShareParticipantsOperationvar fetchShareParticipantsResultBlock: ((Result<Void, any Error>) -> Void)?init()convenience init(userIdentityLookupInfos: [CKUserIdentity.LookupInfo])var perShareParticipantResultBlock: ((CKUserIdentity.LookupInfo, Result<CKShare.Participant, any Error>) -> Void)?var userIdentityLookupInfos: [CKUserIdentity.LookupInfo]?CKFetchWebAuthTokenOperationvar apiToken: String?var fetchWebAuthTokenResultBlock: ((Result<String, any Error>) -> Void)?init()convenience init(apiToken: String)convenience init(APIToken: String)CKLocationSortDescriptorinit(coder: NSCoder)convenience init(key: String?, ascending: Bool, comparator: Comparator)init(key: String, relativeLocation: CLLocation)var relativeLocation: CLLocationinit?(coder: NSCoder)var subscriptionOwnerUserRecordID: CKRecord.ID?init(coder: NSCoder)init?(coder: NSCoder)init(coder: NSCoder)func allTokens() -> [String]init?(coder: NSCoder)convenience init(recordName: String)func makeIterator() -> CKRecordKeyValueIteratorinit?(coder: NSCoder)var share: CKRecord.Reference?CKRecord.SystemFieldKeystatic var creationDate: CKRecord.FieldKeystatic var creatorUserRecordID: CKRecord.FieldKeystatic var lastModifiedUserRecordID: CKRecord.FieldKeystatic var modificationDate: CKRecord.FieldKeystatic let parent: CKRecord.FieldKeystatic var recordID: CKRecord.FieldKeystatic let share: CKRecord.FieldKeystatic let share: CKRecord.RecordTypestatic let userRecord: CKRecord.RecordTypeCKRecord_Reference_ActionCKRecordKeyValueIteratorfunc next() -> (CKRecord.FieldKey, any CKRecordValueProtocol)?func allKeys() -> [String]func changedKeys() -> [String]func object(forKey: String) -> (any __CKRecordObjCValue)?func setObject((any __CKRecordObjCValue)?, forKey: String)let CKRecordParentKey: Stringlet CKRecordShareKey: Stringlet CKRecordTypeUserRecord: StringCKRecordZone.EncryptionScopeinit?(rawValue: Int)case perRecordcase perZonevar encryptionScope: CKRecordZone.EncryptionScopestatic let defaultZoneName: Stringinit?(coder: NSCoder)init?(coder: NSCoder)var share: CKRecord.Reference?init(coder: NSCoder)CKShare.AccessRequestervar contact: CNContactinit?(coder: NSCoder)var participantLookupInfo: CKUserIdentity.LookupInfovar userIdentity: CKUserIdentityvar allowsAccessRequests: Boolvar blockedIdentities: [CKShare.BlockedIdentity]CKShare.BlockedIdentityvar contact: CNContactinit?(coder: NSCoder)var userIdentity: CKUserIdentityfunc blockRequesters([CKShare.AccessRequester])func denyRequesters([CKShare.AccessRequester])init(rootRecord: CKRecord, share: CKRecord.ID)var containerIdentifier: Stringvar hierarchicalRootRecordID: CKRecord.ID?init?(coder: NSCoder)var ownerIdentity: CKUserIdentityvar participantPermission: CKShare.ParticipantPermissionvar participantRole: CKShare.ParticipantRolevar participantStatus: CKShare.ParticipantAcceptanceStatusvar rootRecord: CKRecord?var share: CKSharefunc oneTimeURL(for: CKShare.Participant.ID) -> URL?var dateAddedToShare: Date?CKShare.Participant.IDinit?(coder: NSCoder)var isApprovedRequester: Boolclass func oneTimeURLParticipant() -> Selfvar participantID: CKShare.Participant.IDcase administratorvar requesters: [CKShare.AccessRequester]func unblockIdentities([CKShare.BlockedIdentity])CKShare_Participant_AcceptanceStatusCKShare_Participant_PermissionCKShare_Participant_RoleCKShareRequestAccessOperationinit()convenience init(shareURLs: [URL])var perShareAccessRequestResultBlock: ((URL, Result<Void, any Error>) -> Void)?var shareAccessRequestResultBlock: ((Result<Void, any Error>) -> Void)?var shareURLs: [URL]?let CKShareThumbnailImageDataKey: Stringlet CKShareTitleKey: StringCKShareTransferRepresentationvar body: some TransferRepresentationCKShareTransferRepresentation.ExportedSharestatic func existing(CKShare, container: CKContainer, allowedSharingOptions: CKAllowedSharingOptions) -> CKShareTransferRepresentation<Item>.ExportedSharestatic func prepareShare(container: CKContainer, allowedSharingOptions: CKAllowedSharingOptions, preparationHandler: () async throws -> CKShare) -> CKShareTransferRepresentation<Item>.ExportedSharestatic var transferRepresentation: some TransferRepresentationinit(exporter: (Item) throws -> CKShareTransferRepresentation<Item>.ExportedShare)let CKShareTypeKey: Stringinit?(coder: NSCoder)var alertActionLocalizationKey: String?var alertLaunchImage: String?var alertLocalizationArgs: [CKRecord.FieldKey]?- [
convenience init(alertBody: String?, alertLocalizationKey: String?, alertLocalizationArgs: [CKRecord.FieldKey], title: String?, titleLocalizationKey: String?, titleLocalizationArgs: [CKRecord.FieldKey], subtitle: String?, subtitleLocalizationKey: String?, subtitleLocalizationArgs: [CKRecord.FieldKey], alertActionLocalizationKey: String?, alertLaunchImage: String?, soundName: String?, desiredKeys: [CKRecord.FieldKey], shouldBadge: Bool, shouldSendContentAvailable: Bool, shouldSendMutableContent: Bool, category: String?, collapseIDKey: String?)](https://developer.apple.com/documentation/cloudkit/cksubscription/notificationinfo-swift.class/init(alertbody:alertlocalizationkey:alertlocalizationargs:title:titlelocalizationkey:titlelocalizationargs:subtitle:subtitlelocalizationkey:subtitlelocalizationargs:alertactionlocalizationkey:alertlaunchimage:soundname:desiredkeys:shouldbad-47rj5) init?(coder: NSCoder)var subtitleLocalizationArgs: [CKRecord.FieldKey]?var subtitleLocalizationKey: String?var titleLocalizationArgs: [CKRecord.FieldKey]?var titleLocalizationKey: String?var description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringvar description: Stringinit?(coder: NSCoder)init?(coder: NSCoder)class func lookupInfos(with: [CKRecord.ID]) -> [CKUserIdentity.LookupInfo]class func lookupInfos(withEmails: [String]) -> [CKUserIdentity.LookupInfo]class func lookupInfos(withPhoneNumbers: [String]) -> [CKUserIdentity.LookupInfo]