icloud

Disable iCloud sync [duplicate]

不羁岁月 提交于 2019-11-30 14:13:19
This question already has an answer here: Prevent iCloud sync of data (using .nosync?) 6 answers 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). From: https://developer.apple.com/library/ios/#qa/qa1719/_index.html You can use the following method to set the "do not back up" extended attribute. Whenever you

iCloud Documents not visible

戏子无情 提交于 2019-11-30 13:18:45
问题 I am trying to use iCloud Documents to store XML files from my iOS App. Everything seems to be working fine (I can write and read files without errors) except my App's files do not show up in iCloud Documents neither in icloud.com nor in developer.icloud.com nor on my Windows PC in iCloud Drive folder. I was running the app in simulator and tested with TestFlight on a real device. I have the latest version of iCloud for Windows 4.0 installed. The App is created in Xcode 6. Does anyone know

iCloud UIDocumentPicker crashes intermittently and hangs

寵の児 提交于 2019-11-30 12:38:41
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 ======================================================================================================= - (void)documentPicker:(UIDocumentPickerViewController *

CloudKit not returning the most recent data

做~自己de王妃 提交于 2019-11-30 12:15:35
I am having this issue where I save something to the icloud using CloudKit but immediately fetching the results doesn't return the latest data inserted. Example let todoRecord = CKRecord(recordType: "Todos") todoRecord.setValue(todo, forKey: "todotext") publicDB.saveRecord(todoRecord, completionHandler: { (record, error) -> Void in NSLog("Saved in cloudkit") let predicate = NSPredicate(value: true) let query = CKQuery(recordType: "Todos", predicate: predicate) self.publicDB.performQuery(query, inZoneWithID: nil) { results, error in if error != nil { dispatch_async(dispatch_get_main_queue()) {

Check if User is Logged into iCloud? Swift/iOS

99封情书 提交于 2019-11-30 11:22:47
问题 Is there a way for me to check and see if a user is logged into iCloud when they open the app up? I want to be able to direct them to the settings page if they are not logged in, and if they are logged into iCloud and have used the app before - I want to skip the sign in page.... I looked into Apple's iCloud and Cloudkits documentation but was unable to find anything that would be of assistance! Is this even possible to do? 回答1: Here you go - hopefully self explanatory. For more look at the

URLForUbiquityContainerIdentifier returns nil even if configured correctly

倖福魔咒の 提交于 2019-11-30 08:44:31
I am having the problem, that URLForUbiquityContainerIdentifier is returning nil in some cases even if the user has set up everything correctly in the settings. My code: dispatch_async(someQueue, ^{ if (![[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]) { ErrLog(@"iCloud container not available."); return; } dispatch_async(dispatch_get_main_queue(), ^{ [...] }); }); Does anybody came across the same problem? I am setting nil as the container identifier which should work according to the Apple docs, but I am not so convinced anymore about that. Also this code works fine

“Couldn't send a valid signature” error when using CloudKit without iCloud account

蓝咒 提交于 2019-11-30 08:15:57
问题 I have submitted an iOS app that uses CloudKit to Apple. It's being rejected because it requires user to sign into iCloud for access. Apple's reasoning is that even without iCloud sign-in, the public database is still readable. So that part of the app should function. I am trying to modify the app but I continue to get this error when I am not signed in. <CKError 0x8141a360: "Internal Error" (1/4000); "Couldn't send a valid signature"> I have searched the web and the solution is always just

How to integrate iCloud on a non Document-based app?

醉酒当歌 提交于 2019-11-30 07:49:40
I've read the Apple docs and Ray Wenderlich's tutorial. It seems that I'm forced to use UIDocument so I read it up in the docs. I've found that it's effective to use Document-based approach. My problem is I don't want to be tied in techniques specific to the platform (iOS) thus my app has its own models made from scratch that only inherit from NSObject. This includes saving/loading. Now, I need to integrate iCloud along with my old models. How will I do it in an elegant/effective way where I get to keep my old model implementation and be able to integrate iCloud? You are not in any way forced

iCloud Documents not visible

浪尽此生 提交于 2019-11-30 06:56:57
I am trying to use iCloud Documents to store XML files from my iOS App. Everything seems to be working fine (I can write and read files without errors) except my App's files do not show up in iCloud Documents neither in icloud.com nor in developer.icloud.com nor on my Windows PC in iCloud Drive folder. I was running the app in simulator and tested with TestFlight on a real device. I have the latest version of iCloud for Windows 4.0 installed. The App is created in Xcode 6. Does anyone know how to make the files appear in iCloud Documents? The code I am using for the saving the file: NSLog(@

Managing Core Data iCloud Transaction Logs

一个人想着一个人 提交于 2019-11-30 05:07:33
I am using iCloud with Core Data, based on the SQLite "Library-style" application design as specified by Apple. While the basic functionality works very well, I am concerned about the transaction logs and how they are managed. While the database for my app is not large, it is very active and the core data stack is saved many times while the app is in use. I have noticed that a new transaction log is created for every core data save. The end result is that I have a TON of transaction logs and they take up much more space than the actual database. 1) Do the transaction logs ever get