icloud

CREATE operation not permitted

戏子无情 提交于 2019-12-04 05:22:30
问题 I am trying to utilize CloudKit in my iOS application, but when I attempt to create a new record for for a User record type (record type is named Users ), I get this error: <CKError 0x7fb80947ffb0: "Permission Failure" (10/2007); server message = "CREATE operation not permitted"; uuid = 8C4C7B60-E3F4-42FC-9551-D3A76A6FF9D6; container ID = "iCloud.com.jojodmo.Blix"> To create the new record, I am using this code in viewDidLoad() : UserCKManager.create( CloudKitUser( email: "email@website.com",

Core data/iCloud seeding with local xml file throwing errors in iOS8

独自空忆成欢 提交于 2019-12-04 03:36:56
Hopefully this is something simple but I haven't been able to track down a fix yet. I have an application that I'm trying to implement both iCloud and Core Data with. I'd like it to run on iOS7 and iOS8. The application is a checklist/tableview application for collectibles. Essentially, the application has an pre-seeded xml file with about 50,000 in it. The sqlite/core data is initially configured to have just 1 item. Users can, from a table view, select groups to add to the core data store (so that not all 50,000 items are included). When the user selects a group that has 1-50 items, it

What's the use of iCloud Display Sets?

試著忘記壹切 提交于 2019-12-04 03:18:22
When adding iCloud support to iOS app one can configure iCloud Display Set and link it with an app by specifying NSUbiquitousDisplaySet . But iCloud works even without it, so my question is: what's the purpose of iCloud Display Sets at all? Couldn't find any clear answer anywhere in the docs. And what's more, based on the Apple docs it seems as if specifying Display Set for your app was mandatory if you use iCloud. That did confuse me a bit. It is so that one might want to share the same Display Set for multiple applications or for iOS and Mac app versions? That's right, it's for allowing

iCloud sync keychain

爱⌒轻易说出口 提交于 2019-12-04 03:07:56
问题 In my app, I want to be able to sync a configuration that gets created by the user. I wanted to use iCloud to sync that configuration so that it is always the same on all devices. But, I use the keychain to store the password. Is there a way to also sync keychain data? 回答1: No, keychain syncing is not part of iCloud. It was part of dot mac syncing, but that is no longer available. There will probably be feedback on whether this is a good idea or not (automatically moving passwords from one

Prevent iCloud window from opening on OSX 10.8 app launch

烈酒焚心 提交于 2019-12-04 02:34:38
I have written an OSX app that uses iCloud document storage. Whenever I open it in Mountain Lion (not on Lion), an iCloud window opens that looks like the following: Is there a way to prevent this from happening on launch? Updates: 1) applicationShouldOpenUntitledFile: is not getting called (yes, I'm sure I'm listening in my delegate. 2) If I force quit the app, the next time it opens, I don't get the dialog. But, if I go through the normal Quit process, it does appear. Update 2 (also added as an answer, to help people that may stumble across this question in the future): The

iCloud ubiquity containers not being cleaned up on app delete?

余生颓废 提交于 2019-12-04 00:58:46
I am adding iCloud with Core Data to an app that already exists in the app store, so I need to test upgrade scenarios. However, when I delete my app from my device and re-install it from Xcode, I have noticed that everything inside of my ubiquity container folder on the device is persisted! This is incredibly annoying, as iCloud ends up getting confused when trying to upload files from the transaction logs directory I have specified and often times out. I end up needing to specify a new transaction log location to get it to work again, which will obviously not work in the future for my testing

How to use NSUbiquitousKeyValueStore and NSUserDefaults together

丶灬走出姿态 提交于 2019-12-04 00:53:51
问题 Documentation is not clear on how to use NSUbiquitousKeyValueStore with edge cases. If I want to set a value, I understand that I should set a value to both NSUserDefaults and NSUbiquitousKeyValueStore since iCloud could be disabled. However in my tests [NSUbiquitousKeyValueStore defaultStore] return a valid object even if iCloud is disabled (tested on Mac OS). Also, to my understanding is that if iCloud is enabled, NSUbiquitousKeyValueStore 's values are stored to disk (and available offline

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

﹥>﹥吖頭↗ 提交于 2019-12-03 23:58:31
问题 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

Can developers use iCloud in Windows apps?

我只是一个虾纸丫 提交于 2019-12-03 22:34:14
Developers can use Apple’s iCloud APIs to sync app data between different versions of their app on Mac OS X and iOS. If a developer has a Windows version of their app, can this version also use iCloud to sync app data with versions of their app on Mac OS X and iOS? Adam Davis Access to iCloud is controlled by Apple in such a way that each app that accesses it has to be signed and/or provided a key from Apple. That’s the easiest way to put it without violating the NDA, although the mechanism is not exactly “signing and keys”. At the moment Apple is only providing this for OS X and iOS apps, so

CloudKit - How to share multiple records and retrieve shared records?

痴心易碎 提交于 2019-12-03 21:39:05
I watched last WWDC 2016 What's New with CloudKit to understand how to share records with other users using CKShare Single record sharing: I am able to share and retrieve a single record i.e if xyz@gmail.com has created and shared a single record to abc@gmail.com Multiple records sharing: let's say there are 10 records and xyz@gmail.com wants to share to abc@gmail.com . I am facing the issue when user xyz@gmail.com shares multiple records to user abc@gmail.com What I have tried so far: First I created 3 note records: Note1 Note2 ( set parent as Note1 ) Note3 ( set parent as Note1 ) I shared