Questions tagged [icloud]

iCloud is a web service from Apple Inc. that allows users to store data such as music files and automatically sync them between multiple devices such as: iPhones, iPods, iPads, and personal computers. Note that iCloud is a different API than Apple's CloudKit service.

2716 questions
20
votes
5 answers

Xcode Error - Profile doesn't include the com.apple.developer.icloud-container-environment entitlement

We have enabled iCloud capability in our application and enabled below services, Key-value storage iCloud Documents But while trying to export the build through the archive, it's throwing me the below error, Profile doesn't include the…
Bappaditya
  • 9,494
  • 3
  • 20
  • 29
20
votes
2 answers

How (and when) do I use iCloud's encodeSystemFields method on CKRecord?

encodeSystemFields is supposed to be used when I keep records locally, in a database. Once I export that data, must I do anything special when de-serializing it? What scenarios should I act upon information in that data? As a variation (and if not…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
20
votes
1 answer

Is there an API for iCloud disk capacity and usage?

I use NSFileManager to get the current device disk space (total, used, and free) like so... let systemAttributes = try? NSFileManager.defaultManager().attributesOfFileSystemForPath(NSHomeDirectory() as String) let space =…
W Dyson
  • 4,604
  • 4
  • 40
  • 68
20
votes
6 answers

Why my app is not shown in iCloud Drive Folder

iCloud Drive Folder doesn't show my app's folder. This is how I send a file to iCloud Drive: - (IBAction)btnStoreTapped:(id)sender { // Let's get the root directory for storing the file on iCloud Drive [self rootDirectoryForICloud:^(NSURL…
amone
  • 3,712
  • 10
  • 36
  • 53
19
votes
2 answers

iCloud: Callback for NSFileManager's startDownloadingUbiquitousItemAtURL?

I am using NSFileManager's startDownloadingUbiquitousItemAtURL to download file from iCloud to local copy (the local does not yet have the copy of the file in this case). I can't seem to find the callback for this process. I need the callback to…
user523234
  • 14,323
  • 10
  • 62
  • 102
19
votes
3 answers

Syncing a local sqlite file to iCloud

I store some data in my iOS app directly in a local .sqlite file.  I chose to do this instead of CoreData because the data will need to be compatible with non-Apple platforms. Now, I'm trying to come up with the best way to sync this file over…
JDR
  • 201
  • 2
  • 5
19
votes
3 answers

Can developers use iCloud in Windows apps?

Developers can use Apple’s iCloud APIs to sync app data between different versions of their app on Mac OS X and iOS. If a developer has a Windows version of their app, can this version also use iCloud to sync app data with versions of their app on…
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
19
votes
7 answers

Check given PHAsset is iCloud asset?

I'm trying to get PhAsset object. I want to segregate iCloud assets. Here is my code, PHFetchResult *cloudAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAny…
rishu1992
  • 1,414
  • 3
  • 14
  • 33
18
votes
3 answers

Using iCloud in iOS Simulator

In my App, when I try to run code in the iOS Simulator: NSURL *iCloudURL = [fileManager URLForUbiquityContainerIdentifier:@"2VHM28566N.com.eept.TestICloud"]; NSLog(@"IS ICloud : %@", [iCloudURL absoluteString]); It shows that iCloudURL is nil. Can…
user772845
18
votes
1 answer

How to sync keychain over iCloud

I wan't to store sensitive data for my app in the keychain. I'd also like this to sync over devices, using iCloud. According to Apple this is possible: Does iCloud Keychain work with third-party apps? Yes. Developers can update their apps to work…
johan
  • 6,578
  • 6
  • 46
  • 68
18
votes
4 answers

How to initialise UIDocumentPickerViewController with all type of UTIs

I want to open UIDocumentPickerViewController and It should allow user to select all type of files. I tried to mention all UTIs in UIDocumentPickerViewController init method still couldnt find valid UTIs for some of files like rar,Visio…
Murali
  • 1,869
  • 1
  • 14
  • 22
18
votes
1 answer

What is a shoebox app?

This is taken from the OSX iCloud Storage reference document: If you're writing a shoebox app, on the other hand, you should not use NSDocument. So if you're doing a shoebox app, you must implement your own file presenter and deal with version…
Paul de Lange
  • 10,613
  • 10
  • 41
  • 56
17
votes
1 answer

iCloud + CoreData - how to avoid pre-filled data duplication?

I have a problem with an iCloud shoebox application and hope some-one can help me (I've spent many hours fighting it in vain). The App: - A simple library style application - containing set of categories (Cat1 .. CatN) each containing items…
17
votes
1 answer

ASPasswordCredential - from where?

When using Sign in with Apple there's an ASPasswordCredential option which will pull the password from the iCloud keychain. I can't find details though on "where" in the keychain you store things. i.e. how do I know what keys to store the user or…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
17
votes
7 answers

The application is missing required entitlement com.apple.developer.icloud-services'

I'm using a public iCloud database in my app, which works great and is up on the store. On updating my app to a new version (with Xcode 7 on iOS9) I get a crash on the line : CKContainer * container = [CKContainer…
olynoise
  • 2,016
  • 2
  • 19
  • 32