icloud

“Error: this process has called an NSArray-taking method…” when iCloud pushes managed objects

人走茶凉 提交于 2019-12-10 10:18:52
问题 For every managed object that is sent via iCloud update, this warning/error is sent to the console: *** ERROR: this process has called an NSArray-taking method, such as initWithArray:, and passed in an NSSet object. This is being worked-around for now, but will soon cause you grief. My managed objects are Clients and have a one to many relationship with assessments as shown below. class Client: NSManagedObject { //other NSManaged vars are here @NSManaged var assessment: NSOrderedSet } Judging

SSKeychain: Accounts not stored in iCloud?

两盒软妹~` 提交于 2019-12-10 10:06:32
问题 I'm using sskeychain (https://github.com/soffes/sskeychain) to store my accounts and passwords in the IOS keychain. I assume, that if I store an account, it should be available on my other device. But it doesn't appear there. I read my accounts with this code: NSArray *arr=[SSKeychain accountsForService:@"Login"]; for (NSString *s in arr) { NSLog(@"Account: %@",s); } and get this (only shown one entry, the others are similar): Account: { acct = "friXXXXXter@XXXX.com"; agrp = "3B4384Z34A.de

iOS Application freezing on first launch when iCloud is enabled

半腔热情 提交于 2019-12-10 09:53:21
问题 I enabled iCloud in my iOS app and on first launch of the app the app freezes for about 5 seconds when i press on any view in the app. I followed this tutorial to enable iCloud in my app and synchronize data using core data. I did not have this problem before adding iCloud synchronization. This only happens on first launch, not on other launches of the app. iCloud synchronization does occur. The problem is the app freezing. Here is the code that manages the synchronization in my app delegate.

NSMetadataQuery doesn't finish gathering (no notification)

泪湿孤枕 提交于 2019-12-10 06:36:25
问题 I'm making a backup managrer for my App (via iCloud). I did some tests and the basics worked. But few days later it stopped. I'm using NSMetadataQuery for searching if backup file exists. My backup files are named e.g. Backup29112011154133.xml where numbers represent date of the backup (formatted as ddMMyyyyHHmmss ). I check for it in -viewDidAppear : - (void)viewDidAppear:(BOOL)animated { [self checkForRemoteFile]; } - (void)checkForRemoteFile { NSURL *ubiq = [[NSFileManager defaultManager]

App not syncing Core Data changes with iCloud

痞子三分冷 提交于 2019-12-09 19:22:37
问题 I have some NSLogs set up to ensure that my app syncs changes with iCloud, but I've waited half an hour and changes aren't being sync'd. Here's the code I have for core data. The Core Data Store is stored inside the documents directory because I want it to continue working if it loses access to iCloud, and don't want it to lose the database to be lost in that instance. Core data sets up and makes changes to data as normal, but just doesn't seem to sync with iCloud. - (void

turn off iCloud backup for my application iOS sdk

倖福魔咒の 提交于 2019-12-09 18:42:55
问题 I have some problems because of iCloud and i want to turn off its for my app,how can i do it in the code of my application,i thought about my problem and the decision can be turning off the iCloud, thanks for help 回答1: If you store files in Documents, they will be backed up to iCloud automatically. If you don't want that, the easiest way is to just store them somewhere else. Library/Caches is a good choice. If you really MUST store in Documents but you want to disable iCloud backup you can

Syncing Core Data across multiple devices using iCloud

不想你离开。 提交于 2019-12-09 09:48:13
问题 There has been a lot of discussion lately about the issues with iCloud and Core Data and how Apple's APIs are currently broken in iOS 5 and possibly iOS 6. Is it possible, given the current state of Apple's Core Data API, to reliably sync across multiple devices using iCloud? If so, how would you do this? If not, please recommend an alternative approach. 回答1: It depends on what you want to do. There are two types of Core Data-iCloud integration, as described here: http://developer.apple.com

NSUbiquitousKeyValueStore sync issues

馋奶兔 提交于 2019-12-09 06:33:27
问题 I'm having nothing but trouble with NSUbiquitousKeyValueStore and getting it to reliably sync across two devices. It's starting to drive me mad. Mad. I watch my code make a call to: [[NSUbiquitousKeyValueStore defaultStore] setObject:_someData forKey:@"SomeData"]; [[NSUbiquitousKeyValueStore defaultStore] synchronize]; But more times than not, the data never shows up on the other device. I've seen it sync within a few seconds and other times I've waited for an hour and never seen a sync. I

Do I have to download all iCloud files to be able to generate their thumbnails?

柔情痞子 提交于 2019-12-09 04:25:45
问题 I have read all answers on stack overflow about this error and none solved the case, because my question is a little different. I am enumerating iCloud drive elements NSMetadataItem and storing them on an array. The files are there: confirmed by looking at the iCloud folder on OS X and also on the device using UIDocumentPicker . Later on the code I try to retrieve the thumbnails of such elements using: // self.item is a NSMetadataItem NSURL *fileURL = [self.item valueForAttribute