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
17
votes
2 answers

Detect if iOS app restored from iCloud backup

Is there any way to detect if the launch is from a iCloud backup? (restored) I have looked here but there is nothing about it. Their rules about what is allowed to backup is very strict(rejected multiple times for it) backing a database up, with…
Morten Holmgaard
  • 7,484
  • 8
  • 63
  • 85
17
votes
3 answers

How do I access my iCloud Drive folder from Terminal?

I'm running OS X Yosemite. I would like to save my code folder in iCloud Drive so that it's automatically backed up. I need to access files from the Terminal often, so how can I access iCloud Drive from the Terminal?
Varinder Singh
  • 1,570
  • 1
  • 11
  • 25
16
votes
2 answers

Beta-testing a Mac App Store app

I have an app that I'm going to put in the Mac App Store. I'd like to add iCloud support for preference syncing, and for that reason, I'd like to distribute the betas signed in such a way that they can access iCloud. However, I haven't been able to…
Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
16
votes
2 answers

How to Sync data between two devices using Core Data & iCloud?

What I am trying to achieve is when user creates, changes or deletes data on the persistent store it will be synced with the iCloud store and then update other devices logged into the same iCloud account. I have created a Core Data Stack using…
RileyDev
  • 2,950
  • 3
  • 26
  • 61
16
votes
4 answers

Private data sharing using CloudKit

Is there a straightforward way to share private data between two or more users using CloudKit? Public and private date are obvious, but there doesn't seem to be a way to allow a group of users to organize their own silo to share data amongst…
hashemi
  • 2,608
  • 1
  • 25
  • 31
16
votes
2 answers

CloudKit public database reading without iCloud login

In the documents it says that CloudKit public databases will be available to read even if the user did not login with a proper iCloud account. However, I cannot fetch anything from my cloud database if i didn't connect my iOS simulator or device to…
Ersin Sezgin
  • 640
  • 5
  • 15
16
votes
2 answers

Move local Core Data to iCloud

How can I enable iCloud Core Data in an app which already uses local storage Core Data? I've tried to use NSPersistentStoreUbiquitousContentNameKey in my persistent store options. Unfortunately, this option enables iCloud but does not transfer any…
Sam Spencer
  • 8,492
  • 12
  • 76
  • 133
16
votes
2 answers

Forcing or "encouraging" iCloud to upload changes to a file

I have a Mac and iOS application that is sharing data using iCloud, via a single "shoebox" file. Most of the time, changes are properly synchronized in an efficient and prompt manner. However, every once in a while (particularly, right now) changes…
Craig Otis
  • 31,257
  • 32
  • 136
  • 234
16
votes
1 answer

Don't Backup to iCloud but still rejected

In my app i have to store Core Data Database and audio files, so i decoded to put them in Documents directory. To prevent them from backing up, when i first launch the app, i put the Don't BackUp flag like this - (BOOL)application:(UIApplication…
Nikita Pestrov
  • 5,876
  • 4
  • 31
  • 66
15
votes
8 answers

URLForUbiquityContainerIdentifier returns nil even if configured correctly

I am having the problem, that URLForUbiquityContainerIdentifier is returning nil in some cases even if the user has set up everything correctly in the settings. My code: dispatch_async(someQueue, ^{ if (![[NSFileManager defaultManager]…
Martin Hering
  • 429
  • 3
  • 11
15
votes
2 answers

How to check if iCloud is configured programmatically

Here is the sentence from Apple Docs: "If iCloud is not configured, ask users if they want to configure it (and, preferably, transfer them to Launch Settings if they want to configure iCloud)." How can I check if iCloud is configured or not and how…
Bartosz Bialecki
  • 4,391
  • 10
  • 42
  • 64
15
votes
3 answers

Can I use iCloud to sync the NSUserDefaults plist file

I was wondering if it was possible to use iCloud to sync an app's preferences file between devices. The preference file I am talking about is the com.domain.appname.plist file created by NSUserDafults to store the app's preferences. I would like to…
Jackson
  • 3,555
  • 3
  • 34
  • 50
15
votes
1 answer

"Use default container" doesn't show in iCloud Capabilities

I want set up iCloud sync for CoreData using CloudKit. But when I add iCloud in Capabilities and enable CloudKit checkbox, Use default container don't appear as described in the Doc: Instead, I got this: Maybe I'm missing something?
nomnom
  • 936
  • 10
  • 21
15
votes
1 answer

Figuring assets.xcassets path programmatically using SWIFT

Trying to figure the path to the images with swift code. I got this that I think works in objective C. [UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", [[NSBundle mainBundle] resourcePath], imgName]]; To get the path for my…
user3069232
  • 8,587
  • 7
  • 46
  • 87
15
votes
1 answer

CloudKit not returning the most recent data

I am having this issue where I save something to the icloud using CloudKit but immediately fetching the results doesn't return the latest data inserted. Example let todoRecord = CKRecord(recordType: "Todos") todoRecord.setValue(todo, forKey:…
Shrikar
  • 840
  • 1
  • 8
  • 30