Iphoto update temporarily unavailable4/30/2023 ![]() ![]() If your apps share data among each other, configure your targets to share containers, described in Specifying Custom Containers. Most apps should only need access to the default container. When you enable iCloud Documents, Xcode configures your app to access the iCloud container whose name is based on the app’s bundle ID. As needed, Xcode can also handle any additional configuration, such as the creation of your app’s associated containers. After enabling the iCloud capability, Xcode creates an entitlements file (if one does not already exist) and configures it with the entitlements for the services you selected. The Capabilities tab of your Xcode project manages the creation of the entitlements and containers your app needs to access iCloud. Request Access to iCloud Using Xcode Capabilities To enable access to any iCloud containers, you request the appropriate entitlements. Figure 1-1 Your app’s main iCloud (ubiquity) container in context It is separate from the rest of your app’s data, as shown in Figure 1-1. An iCloud container (also referred to as a ubiquity container) serves as the local representation of the corresponding iCloud storage. To save data to iCloud, your app places data in special file system locations known as iCloud containers. The iCloud Container, iCloud Storage, and Entitlements For more information about data security and privacy concerns related to iCloud, see iCloud security and privacy overview. The iCloud services encrypt data prior to transit and iCloud servers continue to store the data in an encrypted format, using secure tokens for authentication. The operating system coordinates the transfer of data to and from iCloud as needed. ![]() Read and write using the APIs of the technology you are using. Configuration involves requesting entitlements and programmatically initializing those containers before using them.ĭesign your app to respond appropriately to changes in the availability of iCloud (such as if a user signs out of iCloud) and to changes in the locations of files (because instances of your app on other devices can rename, move, duplicate, or delete files). For all iCloud services, the high-level process for using those services is as follows:Ĭonfigure the access to your app’s iCloud containers. Instead, the operating system initiates and manages uploading and downloading of data for the devices attached to an iCloud account. iCloud Data Transfer Proceeds Automatically and Securelyįor most iCloud services, your app does not communicate directly with iCloud servers. For a list of the app services that are available for your platform and type of developer program membership, see Supported Capabilities. Then enable the iCloud service you want to use, described in Adding iCloud Support in App Distribution Guide. ![]() To start developing an iCloud app, you must create an App ID and provisioning profile, described in App Distribution Quick Start. First, Provision Your Development Devices This chapter gets you started with the fundamental elements of iCloud key-value and document storage that all developers need to know. You design how your app manages its data, so only you can decide which iCloud supporting technologies your app needs and which ones it does not. These roles, and the specifics of your iCloud adoption process, depend on your app. To allow your app to participate in this “magic,” you design and implement your app somewhat differently than you would otherwise in particular, you need to learn about your app’s roles when it participates with iCloud. Next Previous iCloud Fundamentals (Key-Value and Document Storage)įrom the perspective of users, iCloud is a simple feature that automatically makes their personal content available on all their devices.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |