icloud

CoreData iCloud Migration “looses” data when more than one device is involved

喜夏-厌秋 提交于 2019-12-10 18:31:44
问题 i recently had some major problems with an update of my app. Numerous users complained about dataloss after they migrated to the newest version. After many hours i am still not sure what happened but i have a theory that i would like to confirm. in the documentation Apple says: Migration and iCloud Changes to a store are recorded and preserved independently for each model version that is associated with a given NSPersistentStoreUbiquitousContentNameKey. A persistent store configured with a

iCloud Drive list directories and files through NSMetadataQuery

回眸只為那壹抹淺笑 提交于 2019-12-10 18:27:57
问题 I have built an iCloud-enabled app named "rmc".My app now can upload files to iCloud Drive and get metadata by NSMetadataQuery.But NSMetadataQuery's results only include the files in my APP's Container.Please see this link:https://developer.apple.com/videos/wwdc/2015/?id=234, this is a document and it is said that NSMetadataQuery can get files in other APP's container.What I want is that I can get all files in iCloud Drive,just like the app "Document 5" and "Cloud Lite",they can get all files

Key data not storing to iCloud with NSUbiquitousKeyValueStore.defaultStore

≡放荡痞女 提交于 2019-12-10 18:17:43
问题 So I have a simple goal, just to get this working. So theoretically if you ruined this. Triggered save players waited a bit Deleted the app Rebuilt (downloaded) Triggered restore then the word "MEDO" would print to the console But instead it is null, making me pretty sure that it is not saving to iC cloud some reason. I followed this tutorial. Perhaps it is too outdated to work? func c_restoreCharecters() { let icloud = NSUbiquitousKeyValueStore.defaultStore() println(icloud.objectForKey(

PFUbiquity error when using Core Data and iCloud

橙三吉。 提交于 2019-12-10 17:23:42
问题 I am using iCloud to sync my Core Data store. This works fine. I just noticed that when I launch the app I get the following error message. Is this normal? Is there something I can do to prevent it? Thanks 2014-12-06 10:06:37.337 -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](808): CoreData: Ubiquity: nobody~sim352B6DF3-0975-5C4B-B561-086A3032D6EA:ContentKeyName Using local storage: 1 2014-12-06 10:06:37.382 __60-[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:]_block

iOS app with core data, photos & iCloud

青春壹個敷衍的年華 提交于 2019-12-10 17:03:35
问题 I'm developing an app that uses core data (with UIManagedDocument) for storing user-generated data that I would like to sync with iCloud. I also would like to sync photos that the user takes with the camera within the app. I read that it's not a good idea to store the actual photos within core data; rather it's better to store the photos in the file system and put the fileURL in core data. Using this method, what is the recommended approach when using UIDocument to store the photos in the

How to detect if a user is signed in to iCloud?

纵然是瞬间 提交于 2019-12-10 14:28:45
问题 How would I detect specifically if a user is signed into iCloud? Checking the return value of URLForUbiquityContainerIdentifier is very limited: 1) It can't distinguish between a user not being signed into iCloud versus other scenarios, e.g. iCloud not enabled. 2) It doesn't appear to change its behavior if a user signs into iCloud from the Settings app while the game is still running in the background, then returns to the app to try to access iCloud services. Is there a more reliable way to

Mac application crashes (killed due to entitlements) regardless of whether entitlements are enabled

六眼飞鱼酱① 提交于 2019-12-10 12:13:58
问题 I have an application that has iCloud enabled in the Entitlements file, but doesn't actually make use of the feature. (Just getting my ducks in a row so I can switch on the functionality in the future.) My application was launching fine, but yesterday it suddenly stopped launching. I was able to determine from the Console that the app was being killed due: 1/6/12 7:25:17.433 AM taskgated: killed com.xxx.xxx[pid 14991] because its use of the com.apple.developer.ubiquity-container-identifiers

NSMetadataQuery does not find NSFileWrapper folder bundles, only files (but they're there)

时光怂恿深爱的人放手 提交于 2019-12-10 11:33:02
问题 I have a strange problem which I can't seem to solve on my own. Any help or thought is appreciated. The problem: NSMetadataQuery finds normal files (like test.txt) but no filewrapper bundle (myWrapperDocument.pro) However, NSFileManager finds all files in my ubiquity container - so the files are there, but NSMetadataQuery doesn't find them! The facts: UIDocument based app using NSFileWrappers Shared Ubiquity Container (for iOS and Desktop app) Works perfect on Mac OS Works perfect on my iPad

iCloud and correct provisioning profile usage

試著忘記壹切 提交于 2019-12-10 11:05:19
问题 Could anyone please solve this? I've posted the forum three I've been using so far. iCloud and correct provisioning profile usage Oct 30, 2011 9:49 AM I've enabled iCloud for my AppID. Then, I've created 3 certificates, listed as: Mac App Mac Installer Development in the Developer Certificate Utility. I downloaded and installed the certificates in my keychain: 3rd Party Mac Developer Application (Mac App) 3rd Party Mac Developer Installer (Mac Installer) Mac Developer (Development) Then, I've

UIManagedDocument: Error/crash on creating new files when network is down (saving)

廉价感情. 提交于 2019-12-10 10:25:33
问题 When I try to save a newly created UIManagedDocument to iCloud and the network is down (e.g. airplane mode) I get the following error(s) with a crash (hexcodes and unreadable stuff removed): -[PFUbiquitySafeSaveFile waitForFileToUpload:](272): CoreData: Ubiquity: <PFUbiquityPeerReceipt: ...>(0) permanentLocation: <PFUbiquityLocation: ...>: /private/var/mobile/Library/Mobile Documents/XXXXXXXXXX~com~domain~AppName/TransactionLog/mobile.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/DocumentName