icloud

iCloud syncing Ubiquity error

我的未来我决定 提交于 2019-12-03 06:28:24
I integrated iCloud in my application and the syncing works, but sometimes I get this error: +[PFUbiquityTransactionLog loadPlistAtLocation:withError:](324): CoreData: Ubiquity: Encountered an error trying to open the log file at the location: <PFUbiquityLocation: 0x1993c0>: /private/var/mobile/Library/Mobile Documents/ ... Error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" -[PFUbiquityTransactionLog loadComparisonMetadataWithError:](220): CoreData: Ubiquity: Error encountered while trying to load the

Xcode error: failed to launch

送分小仙女□ 提交于 2019-12-03 06:19:30
I have a Mac app I have written to support iCloud. However, I get this when trying to run the app: error: failed to launch /Users/padsoftware/Library/Developer/Xcode/DerivedData/Scrawl-heofvoywsunchdhjowxkvkoiqvan/Build/Products/Release/Scrawl.app/Contents/MacOS/Scrawl The odd thing is that this appears for all of my Mac apps, with or without iCloud, with or without sandboxing, with or without entitlements, or ever with or without code signing. Any idea on how to fix this? I had this problem too. For me, it was a code sign issue. Make sure you're signing with developer, not distribution. I

Using the UIDocumentPickerViewController, is it possible to show a default service (Dropbox, Google Drive, etc) on first open like in Slack?

大城市里の小女人 提交于 2019-12-03 04:55:40
问题 Normally, the behavior with UIDocumentPicker is that you present, then the user must use the "Locations" menu on the top right to switch between the services. Is it possible to display either "Dropbox" or "Google Drive" first by default? Almost as if we're "deeplinking" into the UIDocumentPicker service. It seems like Slack App is able to do this and also the MyMail App but I wasn't able to find an API for it. Any ideas? 回答1: Instead of using a UIDocumentPickerViewController, try using a

Reading Apple/iCloud calendar data using PHP/CalDAV

删除回忆录丶 提交于 2019-12-03 03:50:46
I'm attempting to quickly find free/busy time by fetching the calendar events for an iCloud calendar via CalDAV. I'm able to get the available calendars, and according to documentation here or using the DAViCal client library fetching the calendar information for a given date range should be as simple as sending this REPORT xml request to a calendar URL (ie. https://caldav.icloud.com/..userid../calendars/work/ ): <c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav"> <d:prop> <d:getetag /> <c:calendar-data /> </d:prop> <c:filter> <c:comp-filter name="VCALENDAR"> <C:comp

Exclude from iCloud backup: NSURLIsExcludedFromBackupKey

雨燕双飞 提交于 2019-12-03 03:46:35
My app had been rejected the 2nd times and I lost 3 weeks :( The first submit, I excluded ONLY DIRECTORIES from being backed-up in iCloud. Apple rejected... The second submit, I excluded DIRECTORIES & PICTURES downloaded from being backed-up in iCloud. Apple again rejected... Apple also complaint that I have no "Restore" feature for my In-App purchase, while in fact, I do have a "Restore" button and it worked when I tested it. I've done as Apple had suggested by excluding the file from being backedup using NSURLIsExcludedFromBackupKey. There was an interesting comment made by Macmade's on

Anonymously Log In to an App with iCloud Apple ID

非 Y 不嫁゛ 提交于 2019-12-03 03:26:00
According to this CloudKit overview : CloudKit also enables your users to anonymously sign in to your apps with their iCloud Apple IDs without sharing their personal information. I can't find anything else in their documentation about this capability. I already have an app with my own backend, so I wouldn't need any of the back-end-as-a-service features that CloudKit offers, but I would like to take advantage of logging a user in with their iCloud account, much the same way we currently do with Facebook and Twitter. Is that possible with CloudKit, or do you also have to leverage their BAAS

Check given PHAsset is iCloud asset?

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to get PhAsset object. I want to segregate iCloud assets. Here is my code, PHFetchResult *cloudAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAny options:nil]; [cloudAlbums enumerateObjectsUsingBlock:^(PHAssetCollection *collection, NSUInteger idx, BOOL *stop){ if(collection != nil){ PHFetchResult *result = [PHAsset fetchAssetsInAssetCollection:collection options:fetchOptions]; [result enumerateObjectsUsingBlock:^(PHAsset *asset, NSUInteger idx, BOOL *stop) { //

Updating live App ID for Push notifications

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an app in the App Store which has a wildcard App ID. I want to add push notifications to it, but cannot as we have a wildcard App ID. This is the error I get: Only explicit App IDs can be used to access the Apple Push Notification service. Please use an existing App ID with a specific Bundle Identifier or create a new one. Can I create a new App ID for my app that is live in the store? Won't that cause issues? I'm confused as to how I can add push at this stage? [EDIT] Can I setup a new one using the same App ID, but use a new bundle

Alternatives to iCloud + Core Data to sync data between iOS and OS X

醉酒当歌 提交于 2019-12-03 02:44:24
I'm developing an application for iOS/OS X and i want to sync data between them. for now I use Core Data for persistent data. I read that iCloud is not enough mature to use with core data. Is that true ? so i try to use the new DropBox sync API(to sync the SQLite file), but there's no support for OS X. Is Parse SDK a good idea? (it will also allow me to add Android support) If no, have you other solution? Thank you. i read that icloud is not enough mature to use with core data. is that true ? Yes, I've worked with it quite a bit but I cannot recommend it at present. so i try to use the new

iOS - How to know if iCloud photo transfer ability is enabled

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The new iCloud service has many possible configurations. How may I know if the device of my user is configured to send taken pictures to an iCloud server instead of storing them just on the device ? 回答1: If you want to know if iCloud is activated you could simply call: NSFileManager *fileManager = [NSFileManager defaultManager]; NSURL *cloudURL = [fileManager URLForUbiquityContainerIdentifier:nil]; if (cloudURL != nil) { // iCloud is available } This can give you a hint if iCloud is available at all. If you want to use iCloud to store