icloud

How to edit a NSManagedObjectModel that was loaded from a momd in iOS5

安稳与你 提交于 2019-12-03 20:54:51
For my iOS application using CoreData, I need to have a model where certain entities properties vary between the iPhone and iPad version of the app. To achieve this, I load a NSManagedObjectModel from a momd file located in my application bundle, using initWithContentsOfURL: . But, before the model is actually used by the storeCoordinator, I modify some entities programmatically in the model (based on information I store in a device specific plist). This used to work flawlessly on iOS4. As Apple states in its documentation, Managed object models are editable until they are used by an object

Apps must follow the iOS Data Storage Guidelines, nothing in /documents but still some kbs sent to iCloud

匆匆过客 提交于 2019-12-03 20:33:30
问题 My app got rejected with for the following reason : Your app does not follow the iOS Data Storage Guidelines, as required by the App Store Review Guidelines. Your app backs up 4.0 MB of data to each user's iCloud space on launch. Please be sure to set the "Do not back up" attribute for all data which is not generated or modified by the user. To check how much data your app is storing: Install and launch your app Go to Settings > iCloud > Storage and Backup > Manage Storage If necessary,

“Core Data with iCloud” vs “iCloud Core Data”

女生的网名这么多〃 提交于 2019-12-03 20:30:34
My question is: how do I find more information about "Core Data with iCloud" without finding too much "iCloud Cord Data"? These two things are named very similarly, which makes it very hard to find information about one without also finding the other. When I say "iCloud Core Data", I am referring to the functionality that has been recently deprecated in iOS10. "iCloud Core Data" involved Core Data stores with ubiquity options, which meant that individual records updates were synchronized using iCloud across various devices. When I say "Core Data with iCloud", I mean a different functionality

NSMetaDataQuery never calls back with NSMetadataQueryDidFinishGatheringNotification

南笙酒味 提交于 2019-12-03 18:05:57
问题 For an iCloud plugin I'm writing, I subscribe my iCloud manager class to these iCloud NSMetaDataQuery observers: // Add a predicate for finding the documents NSString* filePattern = [NSString stringWithFormat:@"*.%@", @"*"]; self.metadataQuery = [[NSMetadataQuery alloc] init]; // Before starting to query, it is required to set the search scope. arrayWithObject:NSMetadataQueryUbiquitousDocumentsScope]]; // It is also required to set a search predicate. [self.metadataQuery setPredicate:

iCloud with Core Data and File sync

╄→尐↘猪︶ㄣ 提交于 2019-12-03 17:20:57
I'm working on an Application that uses Core Data with iCloud (with the great improvement given by iOS7). This application stores data to describe a task with this information: name a NSString date a NSDate image a NSString which describes a path to the picture The pictures could be stored in Documents or Library Directory (I have to decide which is the more convenient folder), by the way, in the same folder with a unique name. Now I'd like to activate iCloud sync for the images too otherwise the experience of the user will be incomplete (I just sync DB data.. no images, a strange/wrong

CloudKit: CKFetchRecordChangesOperation, CKServerChangeToken and Delta Download

安稳与你 提交于 2019-12-03 16:36:32
My question is related to the "Delta Download" thing as it was named in WWDC 2014 Advanced CloudKit. I'm trying to make syncronization for my Core Data app, which is iPhone only for now (think: there is only one device active). So, basically the app will store user records in the cloud from one same device, for the most cases for now. I have trouble with understanding custom zone feature which is based on CKFetchRecordChangesOperation aka Delta Download. As I got it right, we have CKServerChangeToken 's to maintain sync operations (I mean download only those records which was added/modified

Core Data with iCloud design

浪尽此生 提交于 2019-12-03 15:29:49
Im on iOS 7 and want to use core data with iCloud, this is working well, the issue I wanted some input on is the following. Some of my Core Data objects have related images/large text files which I was storing as files on the file system and just setting the url of these items as string properties. Now obviously this wont just work with iCloud Core Data sync because iCloud has no notion of these files. I was wondering if you had any suggestions on how to handle this? 1) I could store the image data and large text files as core data properties directly but it does not seem to be the best way to

Anonymously Log In to an App with iCloud Apple ID

萝らか妹 提交于 2019-12-03 14:15:10
问题 According to this CloudKit overview: CloudKit also enables your users to anonymously sign in to your apps with their iCloud Apple IDs without sharing their personal information. I can't find anything else in their documentation about this capability. I already have an app with my own backend, so I wouldn't need any of the back-end-as-a-service features that CloudKit offers, but I would like to take advantage of logging a user in with their iCloud account, much the same way we currently do

iCloud and Xcode 6 - Ubiquity Container

早过忘川 提交于 2019-12-03 14:14:13
I am currently working on an app for iOS 8 which uses iCloud Drive and the CloudKit Framework. Everything was set up by using Xcode 6. When I try to submit my App to iTunesConnect I get the following error: When I'm adding the Key in my iCloud entitlements I'm not able to Code sign the app and Xcode sends me an error,too. <key>com.apple.developer.ubiquity-container-identifiers</key> <string>de.sn0wfreeze.CloudFInder</string> I'll get that error: And I'm not able to Code sign. Can anyone please help my with that issue ? Chris Prince I ran into the same situation. After stumbling around for a

Reading Apple/iCloud calendar data using PHP/CalDAV

爱⌒轻易说出口 提交于 2019-12-03 13:55:44
问题 I'm attempting to quickly find free/busy time by fetching the calendar events for an iCloud calendar via CalDAV. I'm able to get the available calendars, and according to documentation here or using the DAViCal client library fetching the calendar information for a given date range should be as simple as sending this REPORT xml request to a calendar URL (ie. https://caldav.icloud.com/..userid../calendars/work/): <c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav"> <d:prop