icloud

Remove Core Data from iCloud fails

你。 提交于 2019-12-06 08:28:38
I'm trying to remove Core Data from iCloud using [NSPersistentStoreCoordinator removeUbiquitousContentAndPersistentStoreAtURL:options:error:] . But I get strange output: __93+[NSPersistentStoreCoordinator removeUbiquitousContentAndPersistentStoreAtURL:options:error:]_block_invoke(1982): CoreData: Ubiquity: Unable to move content directory to new location: file:///private/var/mobile/Library/Mobile%20Documents/<UBIQUITY_ID>/ New: file:///private/var/mobile/Library/Mobile%20Documents/OldUbiquitousContent-mobile~C9439AD0-1E87-4977-9C68-0674F5E2E93B Error Domain=NSCocoaErrorDomain Code=513 "The

Prevent iCloud Backup of Folder

回眸只為那壹抹淺笑 提交于 2019-12-06 07:54:31
I recently got rejected for my NSLibraryDirectory backing up wrong kind of data to iCloud. I am trying to prevent the entire directory from backing up to iCloud, as this directory doesn't contain anything but downloaded content. Would this code in the AppDelegate.m work? - (NSString *)applicationDocumentsDirectory { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSURL *pathURL= [NSURL fileURLWithPath:documentsDirectory]; [self addSkipBackupAttributeToItemAtURL:pathURL]; return

Core Data iCloud Syncing

£可爱£侵袭症+ 提交于 2019-12-06 07:53:40
问题 I have implemented Core Data as local storage for a new app and now want to enable iCloud synchronising across devices. I've been reading the documentation and some tutorials but can't get my head around how to switch between local and cloud storage, and how to synchronise changes from iCloud when cloud storage is enabled. Would somebody mind summarising the process so I can then go and research each stage? Thanks in advance! 回答1: I've managed to get this working by following this tutorial:

NSMetadataQuery does not find NSFileWrapper folder bundles, only files (but they're there)

五迷三道 提交于 2019-12-06 07:24:49
I have a strange problem which I can't seem to solve on my own. Any help or thought is appreciated. The problem: NSMetadataQuery finds normal files (like test.txt) but no filewrapper bundle (myWrapperDocument.pro) However, NSFileManager finds all files in my ubiquity container - so the files are there, but NSMetadataQuery doesn't find them! The facts: UIDocument based app using NSFileWrappers Shared Ubiquity Container (for iOS and Desktop app) Works perfect on Mac OS Works perfect on my iPad Mini and my iPhone 4S and iPhone 3GS (running iOS6 and iOS5) Doesn't work on my iPad1 nor on most of my

CSS or JavaScript Div Blur magic

浪尽此生 提交于 2019-12-06 07:01:30
Okay, so a new version of the iCloud website is out. It has what appears to be some crazy voodoo Apple magic going on. They were able to blur the background icons behind the login screen, and I can't figure out how they did it. It's not a static image, as the icons change size if you resize the browser. Would someone please explain? https://www.icloud.com/ I think you can implement using css! please check out http://www.w3schools.com/svg/svg_fegaussianblur.asp You can use alot of different filters by declaring them like <filter id="f1" x="0" y="0"> <feGaussianBlur in="SourceGraphic"

iCloud - How to save archive containing array of custom objects

懵懂的女人 提交于 2019-12-06 06:59:27
问题 I have developed a small app that stores locally in iOS through archiving an array of custom objects containing: @property (nonatomic, copy) NSString *name; @property (nonatomic, copy) NSString *dateCreated; @property (nonatomic, copy) NSString *desc; @property (nonatomic, copy) NSString *url; I want to sync said archive using iCloud and I believe the recommended mechanism is through a UIDocument subclass. All UIDocument examples I found utlilized a single instance with 1 single NSString, so

CloudKit didReceiveRemoteNotification not called on the Mac

十年热恋 提交于 2019-12-06 06:36:46
I am using the following CKNotification Info and this seems to work fine: CKNotificationInfo *note = [[CKNotificationInfo alloc] init]; note.alertBody = @"Something Happened"; note.shouldBadge = NO; note.shouldSendContentAvailable = NO; When something changes on an iOS device, my Mac app receives a Push notification based on a subscription with this notification. However, didReceiveRemoteNotification is never called so I can't process the event. I need to be able to refresh and fetch new changes. How do I do that? Calling registerForRemoteNotificationTypes: and implementing

iCloud and correct provisioning profile usage

久未见 提交于 2019-12-06 06:22:46
Could anyone please solve this? I've posted the forum three I've been using so far. iCloud and correct provisioning profile usage Oct 30, 2011 9:49 AM I've enabled iCloud for my AppID. Then, I've created 3 certificates, listed as: Mac App Mac Installer Development in the Developer Certificate Utility. I downloaded and installed the certificates in my keychain: 3rd Party Mac Developer Application (Mac App) 3rd Party Mac Developer Installer (Mac Installer) Mac Developer (Development) Then, I've created 2 provisioning profiles: Development I selected the App ID, the previously created development

Migrating an iCloud Store to a Local Store and making sure the data is there through each app launch

99封情书 提交于 2019-12-06 05:45:32
问题 Based on the question here: Migrate iCloud data to Local store and stopping iCloud from still responding regard moving an iCloud store over to a local store and making sure the iCloud notifications are disabled, I have the next scenario that I am stuck on. Issue Right now, when the user runs the app on the first device, they're asked at the start if they want to enable iCloud. If they select yes, the data is migrated over to iCloud. If the user connects in a second device, they're asked if

iOS 9 CoreData / ICloud - No such document at URL

血红的双手。 提交于 2019-12-06 05:11:06
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 app that seems to work perfectly 90% of the time syncing CoreData with iCloud Ubiquitous storage.