icloud

Why is iCloud account/CKContainer not being found

天涯浪子 提交于 2019-12-08 03:27:50
问题 Please see my updated question below: I am working on my first app with CloudKit. I'm trying to test whether a user is connected to iCloud, before looking for transactions. This is my code (showing various tests): func isICloudContainerAvailable()->Bool { CKContainer.default().accountStatus { (accountStat, error) in if (accountStat == .available) { print("iCloud is available") } else { print("iCloud is not available") } } CKContainer.default().accountStatus { (accountStatus, error) in switch

Full CoreData uploading (backup) to iCloud Drive and restore if need

淺唱寂寞╮ 提交于 2019-12-08 03:12:54
问题 My project is CoreData-based application. Is it enough to upload sqlite-file to CloudDrive for restoring data when need? Is there any tutorials how to implement it? 回答1: Nothing for you to do. Just enable iCloud and it will always be backed up and restorable automatically. See Enable iCloud with Core Data. It's really simple. 来源: https://stackoverflow.com/questions/30886331/full-coredata-uploading-backup-to-icloud-drive-and-restore-if-need

iCloud sync of images in Photos Framework created album

て烟熏妆下的殇ゞ 提交于 2019-12-08 01:10:17
问题 TL;DR - Will an album created with [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:@"ALBUM_TITLE"]; sync over iCloud? And will synced images have the same localIdentifier on every device ? In my App I need to store a number of distinct albums/folders of photos that the user adds by either using the camera or adding an existing photo from the photo library. Ideally what I want is all the photos from the app to be located in the same one (specific to my app) album in

iCloud and a Web Application

一世执手 提交于 2019-12-08 00:12:04
问题 I have an iOS app that lets the user manager recipes. I would also like them to be able to manage the same recipes on their iPad and Mac. It seems that iCloud would allow me to do exactly that. However, if I want to also build a web application that provides the same functionality, am I right in thinking I need my own non-iCloud solution? Is there any iCloud API that lets a user log in to their apple account and access the data added in the iOS/OS X applications? If I want to allow web access

iOS 9 CoreData / ICloud - No such document at URL

不羁岁月 提交于 2019-12-07 23:51:47
问题 UPDATE 2 I am also occasionally getting this error: CoreData: Ubiquity: Librarian returned a serious error for starting downloads Error Domain=BRCloudDocsErrorDomain Code=6 I am wondering if it is related? Am working on submitting a bug report but would appreciate any insight. UPDATE When this error occurs I am getting very strange behavior with coredata where it will not be able to find related objects in the same context. This is absolutely crippling my app now ORIGINAL QUESTION I have an

iCloud & Core Data: Possible to get NSPersistentStoreDidImportUbiquitousContentChangesNotification while app is in background?

末鹿安然 提交于 2019-12-07 16:33:23
问题 My app uses local notifications based on the timing of events logged with Core Data. Any time there is a significant change in my Core Data store on the device, I call a function called updateLocalNotifications() that clears existing local notifications and sets up new ones based on the updated data in Core Data. My NSPersistentStoreCoordinator for Core Data is set up with NSPersistentStoreUbiquitousContentNameKey , so it syncs across devices automatically using iCloud. Ideally, if the user

Error messages in iOS CoreData + iCloud after deleting and redeploying app

本秂侑毒 提交于 2019-12-07 15:42:42
问题 The application has been put in iCloud since the beginning, so I have the opportunities to fill it with data, and see synchronization happening on other devices. However I am starting to have problems after deleting and redeploying the application on one device only. In particular, at startup, it's taking a lot at this point: NSLog(@"add coordinator"); if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error])

Accessing iCloud photos uniquely on multiple devices using PHAsset

二次信任 提交于 2019-12-07 11:14:47
问题 Is there a way of accessing a specific PHAsset in an iCloud album uniquely on multiple devices? I have written a simple app that lists thumbnails and .localIdentifier s from an iCloud shared album, and (naturally) it shows the same images on different devices, however, the localIdentifiers are different for the same images on different devices (not so unexpected as it is a "local" identifier). However, what I actually want to do is associate a record in a cloud-shared CoreData database with

NSURLIsExcludedFromBackupKey crashes before iOS 5.1

两盒软妹~` 提交于 2019-12-07 07:15:17
问题 Like many of iOS developers I have encountered the issue with application crashing on system before 5.1 when using NSURLIsExcludedFromBackupKey . It was well described how to evaluate existence of this key on this thread: Use NSURLIsExcludedFromBackupKey without crashing on iOS 5.0 One of samvermette's comments says that there is a bug in iOS simulator. Nevertheless I have encountered the same issue with a Release build, even in 2 separate applications. After some investigation I have

I'm not getting the NSPersistentStoreDidImportUbiquitousContentChangesNotification (with code sample)

[亡魂溺海] 提交于 2019-12-07 02:24:18
问题 I'm trying to learn how to use iCloud with coredata. My target is to sync a single database file on mac/ios. Both my mac and iOS apps seem to be updating iCloud as I can see it under System Preferences->iCloud->Manage ... There's an app named Unknown which everytime I change something on the ios/mac app is getting bigger and bigger. So that makes me think The apps are storing changes to the cloud. The problem is, I'm not getting the