iCloud

Manage files and key-value data that are automatically synchronized among a user's iCloud devices.

Topics

iCloud Storage

NSFileManager

A convenient interface to the contents of the file system, and the primary means of interacting with it.

NSFileManagerDelegate

The interface a file manager's delegate uses to intervene during operations or if an error occurs.

App Preferences

NSUbiquitousKeyValueStore

An iCloud-based container of key-value pairs you use to share data among instances of your app running on a user's connected devices.

File Search

NSMetadataQuery

A query that you perform against Spotlight metadata.

NSMetadataQueryDelegate

An interface that enables the delegate of a metadata query to provide substitute results or attributes.

NSMetadataItem

The metadata associated with a file.

Entitlements

com.apple.developer.icloud-container-development-container-identifiers

The container identifiers for the iCloud development environment.

com.apple.developer.icloud-container-environment

The development or production environment to use for the iCloud containers.

iCloud Container Identifiers Entitlement

The container identifiers for the iCloud production environment.

Key: com.apple.developer.icloud-container-identifiers
iCloud Services Entitlement

The iCloud services used by the app.

Key: com.apple.developer.icloud-services
iCloud Key-Value Store Entitlement

The container identifier to use for iCloud key-value storage.

Key: com.apple.developer.ubiquity-kvstore-identifier

Errors

iCloud Error Codes

Error codes to expect when an iCloud-related error occurs.

See Also

Files and Data Persistence

File System

Create, read, write, and examine files and folders in the file system.

Archives and Serialization

Convert objects and values to and from property list, JSON, and other flat binary representations.

Preferences

Persistently store domain-scoped pieces of information used to configure your app.

Spotlight

Search for files and other items on the local device, and index your app's content for searching.