icloud

Document saved on iCloud Drive seems not to be downloaded on iOS

南笙酒味 提交于 2021-02-18 18:14:34
问题 I'll let the user save backup of his data using iCloud drive. That works good. But if I switch to another iCloud Drive enabled device, I can't read the file. I can see the backup file within the iCloud Drive App, but it's not downloaded, (it shows the "download from icloud symbol). Is it possible to force the download of all files available within the directory if the user wants to restore a backup? Using Swift 2 on iOS 8/9. 回答1: I've solved this by myself. I'll check whether my backup file

Rename an iCloud document

会有一股神秘感。 提交于 2021-02-09 05:12:38
问题 The problem What I have so far is code that creates a new local file and deletes the iCloud file. Is it possible to rename an iCloud document, so that it stays in iCloud? GarageBand can do it. It's possible to rename an iCloud song. After the rename is done, the song is still in iCloud. However GarageBand is an Apple app, so it may use private apis. My current code: - (void)moveFrom:(NSURL*)sourceURL moveTo:(NSString*)destinationName completion:(void (^)())completion { MyDocument *document =

Rename an iCloud document

☆樱花仙子☆ 提交于 2021-02-09 05:08:05
问题 The problem What I have so far is code that creates a new local file and deletes the iCloud file. Is it possible to rename an iCloud document, so that it stays in iCloud? GarageBand can do it. It's possible to rename an iCloud song. After the rename is done, the song is still in iCloud. However GarageBand is an Apple app, so it may use private apis. My current code: - (void)moveFrom:(NSURL*)sourceURL moveTo:(NSString*)destinationName completion:(void (^)())completion { MyDocument *document =

Rename an iCloud document

一曲冷凌霜 提交于 2021-02-09 05:05:54
问题 The problem What I have so far is code that creates a new local file and deletes the iCloud file. Is it possible to rename an iCloud document, so that it stays in iCloud? GarageBand can do it. It's possible to rename an iCloud song. After the rename is done, the song is still in iCloud. However GarageBand is an Apple app, so it may use private apis. My current code: - (void)moveFrom:(NSURL*)sourceURL moveTo:(NSString*)destinationName completion:(void (^)())completion { MyDocument *document =

Rename an iCloud document

微笑、不失礼 提交于 2021-02-09 05:04:41
问题 The problem What I have so far is code that creates a new local file and deletes the iCloud file. Is it possible to rename an iCloud document, so that it stays in iCloud? GarageBand can do it. It's possible to rename an iCloud song. After the rename is done, the song is still in iCloud. However GarageBand is an Apple app, so it may use private apis. My current code: - (void)moveFrom:(NSURL*)sourceURL moveTo:(NSString*)destinationName completion:(void (^)())completion { MyDocument *document =

Xcode 9 Server exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}

谁说我不能喝 提交于 2021-02-07 12:29:44
问题 I upgraded to Xcode 9 Server recently and discovered a sudden problem. There were several other problems i had until i came to this error. I changed from automatic signing to manual singing back and forth. Now in my iOS project i've set it manually and on the server i tried both. The build is successful and it produces an archive (i can't download it though), but it also gives me the error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of

Xcode 9 Server exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}

为君一笑 提交于 2021-02-07 12:29:19
问题 I upgraded to Xcode 9 Server recently and discovered a sudden problem. There were several other problems i had until i came to this error. I changed from automatic signing to manual singing back and forth. Now in my iOS project i've set it manually and on the server i tried both. The build is successful and it produces an archive (i can't download it though), but it also gives me the error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of

CloudKit and Core sync data between devices

僤鯓⒐⒋嵵緔 提交于 2021-02-07 11:55:40
问题 I created a simple Notes app based on Core data . Now i want add sync between user devices. And all articles that i read (this, this) said that i should fully get rid of my core data database, and all my code will lost and rework all with ICloud kit ? The is no way to sync data from Core Data to ICloud ? And if i get rid of core data, how my app will work offline ? And please suggest good simple projects with ICloud sync P.S. I googled about an hour. Icloud is deprecated so do sync with it is

How to model my CloudKit data

可紊 提交于 2021-02-07 10:12:54
问题 In my app I decided to use CloudKit as my sync-backend. My app is not about projects, but for simplicity let's say so... So... In my app users will have multiple projects. Each of those contains multiple entities associated with that project. For example tasks, but also reminders and so on. All this data will be stored in the users private database. Nothing will be in the public database. Now a user can have multiple projects. My first question: Should each project be in it's own CKRecordZone

How to model my CloudKit data

╄→гoц情女王★ 提交于 2021-02-07 10:09:34
问题 In my app I decided to use CloudKit as my sync-backend. My app is not about projects, but for simplicity let's say so... So... In my app users will have multiple projects. Each of those contains multiple entities associated with that project. For example tasks, but also reminders and so on. All this data will be stored in the users private database. Nothing will be in the public database. Now a user can have multiple projects. My first question: Should each project be in it's own CKRecordZone