icloud

The application is missing required entitlement com.apple.developer.icloud-services'

痴心易碎 提交于 2019-12-01 03:13:43
I'm using a public iCloud database in my app, which works great and is up on the store. On updating my app to a new version (with Xcode 7 on iOS9) I get a crash on the line : CKContainer * container = [CKContainer containerWithIdentifier:@"iCloud.com.identifier"]; *** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services' This happens ONLY the first launch of the app after updating, and only on iOS9. After that first (update) launch, the app launches and iCloud works as expected. I can recreate the

Apple iCloud access to contacts in uwp application

十年热恋 提交于 2019-12-01 02:20:43
I am trying to access my iCloud contacts in my UWP application. I know that I can access my Gmail Contacts through Google's People API and my Outlook contacts through Microsoft's Graph api OR Outook people api . Does Apple provide an API (Rest or otherwise) that could be leveraged to fetch, update, add, delete contacts? If yes, is there a tutorial that walks through how to setup access iCloud api? After spending many days trying to figure this out, I think I am starting to crack this. I am not sure (may be I am) if Apple intentionally makes this difficult but this is more difficult than it

How to use Sample Code of “Core Data with iCloud” session 227 in WWDC 2012?

可紊 提交于 2019-12-01 01:31:04
I'm strugling few weeks to solve this problem.. so please help me out to solve this problem. I downloaded the sample code of core data with iCloud from apple WWDC 2012. and tried to use it for my application but nothing worked. of course, I changed some code little bit.. but I don't know exactly what I should do and can't find any website that saying about it and tutorials.. I spended few weeks already and I'm tired. I know this is because of my lack of skill. problem I'm facing is... - (void)asyncLoadPersistentStores { NSError *error = nil; if ([self loadLocalPersistentStore:&error]) { NSLog(

How can I migrate the data from the iCloud store file to a new store file in local storage?

﹥>﹥吖頭↗ 提交于 2019-12-01 01:06:55
I have iCloud in my app. I've removed iCloud from my app, but on ios 6 app crashes and I get this message: -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:](1055): CoreData: Ubiquity: Error: A persistent store which has been previously added to a coordinator using the iCloud integration options must always be added to the coordinator with the options present in the options dictionary. If you wish to use the store without iCloud , migrate the data from the iCloud store file to a new store file in local storage. How can I solve this error? How can I

URLForUbiquityContainerIdentifier alway return nil

戏子无情 提交于 2019-12-01 00:22:11
URLForUbiquityContainerIdentifier: always returns nil NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil]; if (ubiquityURL == nil) app build by xcode 4.5 app is enabled iCloud IOS is logged in into iCloud account ubiquityURL is normal in debug, but ubiquityURL is always nil after distribution to app store. It sounds like your release configuration has the wrong entitlements. What is your com.apple.developer.ubiquity-container-identifiers values in your .entitlements plist? 来源: https://stackoverflow.com/questions/12769542/urlforubiquitycontaineridentifier-alway-return-nil

How to use iCloud for syncing my sqlite database and images that resides in the folder in the library folder of application

懵懂的女人 提交于 2019-11-30 23:23:06
My requirement is , The app I am working on is having a folder name called "Private docmunets " created in the Library folder that reside in the application folder.There are images and a sqlite file which records users entries and images in this folder. I have to make my app iCloud enabled, so I have to sync my sqlite database and all the images stored in Private docmunets folder on iCloud. From the last two weeks I am searching for this but I did not get the right direction how to proceed. Please any one suggest me which approach should I follow to fulfill my requirement. Any link or sample

CKFetchNotificationChangesOperation returning old notifications

吃可爱长大的小学妹 提交于 2019-11-30 22:21:12
I'm working on a CloudKit-based app that uses CKSubscription notifications to keep track of changes to a public database. Whenever the app receives a push notification I check the notification queue with CKFetchNotificationChangesOperation and mark each notification read after processing it: __block NSMutableArray *notificationIds = [NSMutableArray new]; CKFetchNotificationChangesOperation *operation = [[CKFetchNotificationChangesOperation alloc] initWithPreviousServerChangeToken:self.serverChangeToken]; operation.notificationChangedBlock = ^(CKNotification *notification) { [notificationIds

Apple iCloud access to contacts in uwp application

本秂侑毒 提交于 2019-11-30 20:53:18
问题 I am trying to access my iCloud contacts in my UWP application. I know that I can access my Gmail Contacts through Google's People API and my Outlook contacts through Microsoft's Graph api OR Outook people api . Does Apple provide an API (Rest or otherwise) that could be leveraged to fetch, update, add, delete contacts? If yes, is there a tutorial that walks through how to setup access iCloud api? 回答1: After spending many days trying to figure this out, I think I am starting to crack this. I

How to sync keychain over iCloud

孤者浪人 提交于 2019-11-30 20:17:05
I wan't to store sensitive data for my app in the keychain. I'd also like this to sync over devices, using iCloud. According to Apple this is possible: Does iCloud Keychain work with third-party apps? Yes. Developers can update their apps to work with iCloud Keychain. Passwords saved by those apps are kept up to date on all devices that use the app and are using iOS 7.0.3 or later or OS X Mavericks v10.9 or later. However, I can't find any documentation about what is needed by the app. Will all content of the keychain be synced if the user has enabled iCloud Keychain? You need to set the

URLForUbiquityContainerIdentifier alway return nil

浪尽此生 提交于 2019-11-30 19:48:55
问题 URLForUbiquityContainerIdentifier: always returns nil NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil]; if (ubiquityURL == nil) app build by xcode 4.5 app is enabled iCloud IOS is logged in into iCloud account ubiquityURL is normal in debug, but ubiquityURL is always nil after distribution to app store. 回答1: It sounds like your release configuration has the wrong entitlements. What is your com.apple.developer.ubiquity-container-identifiers values in your .entitlements