icloud

How do I delete a CloudKit container?

我与影子孤独终老i 提交于 2019-11-30 04:41:09
I accidentally created a new container in CloudKit, and it is really annoying that it comes up when I open dashboard. Any suggestion how to delete? On developer.apple.com I don't see a delete button for containers. Ezimet Apple's iOS CloudKit documentation: Enable iCloud and Select CloudKit Important: When you select CloudKit, Xcode creates a default container ID based on the bundle ID. Because you can’t delete iCloud containers , verify that your bundle ID is correct in the General pane in Xcode before selecting CloudKit. To change your bundle ID, read Set the Bundle ID in App Distribution

iCloud: can I ignore those who disable iCloud?

元气小坏坏 提交于 2019-11-30 04:08:48
问题 I'm struggling a bit with the idea of iCloud and posted a more general question here. My biggest problem is to decide whether I should stop putting the user's data in the good old documents folder which is found in the app's sandbox. To illustrate my problem: The docs don't give an answer as far as I can see. Let's suppose I have an App which handles different txt files. Once I start my app, I simply check if any txt files are in the cloud like so: - (BOOL)application:(UIApplication *

How (and when) do I use iCloud's encodeSystemFields method on CKRecord?

廉价感情. 提交于 2019-11-30 03:51:27
encodeSystemFields is supposed to be used when I keep records locally, in a database. Once I export that data, must I do anything special when de-serializing it? What scenarios should I act upon information in that data? As a variation (and if not covered in the previous question), what does this information help me guard against? (data corruption I assume) encodeSystemFields is useful to avoid having to fetch a CKRecord from CloudKit again to update it (barring record conflicts). The idea is: When you are storing the data for a record retrieved from CloudKit (for example, retrieved via

CloudKit - no server-side logic?

旧街凉风 提交于 2019-11-30 03:39:32
With CloudKit , you can focus on your client-side app development and let iCloud eliminate the need to write server-side application logic . CloudKit provides you with Authentication, private and public database, structured and asset storage services — all for free with very high limits. You cannot upload any code to run on Apple's servers? I've heard it being compared to Google App Engine and other cloud computing platforms, but without the ability to run your own code, isn't the whole thing pretty limited and not really comparable? For example, if I want to build a news app which

Setting NSDocumentDirectory so it doesn't backup to iCloud

橙三吉。 提交于 2019-11-29 23:53:20
问题 I'm trying to mark the entire folder of my app's NSDocumentDirectory so that it is excluded from the iCloud backup, but when I go to the terminal and run: xattr -plxv com.apple.MobileBackup I get this error: No such xattr: com.apple.MobileBackup Thank you in advance for any help offered. Here is the code I'm using: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { NSArray *paths = NSSearchPathForDirectoriesInDomains

Can you sync CoreData with iCloud?

半世苍凉 提交于 2019-11-29 21:55:45
does anyone know if and how you can sync CoreData apps with iCloud? If I understand the Apple iCould instructions right you can not sync CoreData, can you? Given that you tagged this with Cocoa, I suggest that you watch the video for WWDC 2011 Session 315 - "What's New in Core Data on Mac OS X". For iOS, check out Session 303 - "What's New in Core Data on iOS". These will answer all of your questions regarding Core Data and iCloud. Since this is still under NDA, that's the most I can tell you. Here's an article with sample code: http://goddess-gate.com/dc2/index.php/post/452 . I am going to

Disable iCloud sync [duplicate]

自作多情 提交于 2019-11-29 20:02:10
问题 This question already has answers here : Prevent iCloud sync of data (using .nosync?) (6 answers) Closed 3 years ago . Is there a way to prevent your application data (Documents folder contents) from being synced to iCloud? (other then storing it in Caches directory because of the new issues in iOS5 with doing that) My Application has need of storing data on the device, but for security reasons it can't be synchronized to any 3rd party (including Apple). 回答1: From: https://developer.apple.com

How to use iCloud to store and sync app files

烈酒焚心 提交于 2019-11-29 19:37:42
I already have an iPhone App that stores data in a file in the local documents folder. Now I learnt about iCloud technologies and my first question was: is there a way to use iCloud as a directory when sometimes I check for new versions? I mean: can I avoid using UIDocument, file coordinators and file presenters? I want just to know if could treat iCloud like a special folder and only use NSFileManager to push and retrieve files. Last note: I don't use Core Data or any database, I only have a data file. Edit: I already read the official Apple iCloud documentation so don't link me to them. I

iCloud UIDocumentPicker crashes intermittently and hangs

六眼飞鱼酱① 提交于 2019-11-29 18:12:55
问题 Issue: When choosing a document from iCloud the application randomly crashes, for most of the time the following code will work, but on rare occasions it will fail. I have enabled iCloud entitlement in the app and can't seem to find the reason why it intermittently fails. Is there a check that I'm missing? It's also hanging for a noticeable 5 or so seconds on occasions (usually in the run up to crashing) Code: #pragma mark - iCloud =============================================================

Creating New Event to iCloud Apple Calendar always Results 400 Bad Request

回眸只為那壹抹淺笑 提交于 2019-11-29 17:14:48
Currently, I am developing a website which will sync data from Apple Calendar to my app and vice versa. For fetching data from Apple Calendar to my application, I already can get the .ics files from iCloud calendar and it works just fine. However, I have an issue when creating new Event in Apple Calendar. Somehow, every request that I send results 400 Bad Request . Here is the detail of the request: Header: If-None-Match: * Method: PUT Uri destination: https://p46-caldav.icloud.com/[USER_ID]/calendars/work/dfsfsdfsfsfsfsdfsdfsdf.ics Content type: text/calendar Apple Id and App Specific