axiom-icloud-drive-ref

Implement iCloud Drive file synchronization with NSFileCoordinator and NSFileVersion.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-icloud-drive-ref
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-icloud-drive-ref
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-icloud-drive-ref
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-icloud-drive-ref

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and code examples for implementing file-based synchronization using iCloud Drive, ensuring your app's data is consistently available across Apple devices.

Core Features & Use Cases

  • iCloud Drive Integration: Learn how to save, read, and coordinate access to files within ubiquitous containers.
  • Conflict Resolution: Understand and implement strategies for handling file conflicts during synchronization.
  • Preference Sync: Utilize NSUbiquitousKeyValueStore for syncing small application preferences.
  • Use Case: A document-editing app that needs to sync user-created documents seamlessly across an iPhone, iPad, and Mac.

Quick Start

Use the axiom-icloud-drive-ref skill to get the URL for your app's iCloud container.

Frequently Asked Questions about axiom-icloud-drive-ref

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement iCloud Drive file sync across iOS and macOS?

To implement iCloud Drive file sync, use ubiquitous containers to save and read files, coordinate access with NSFileCoordinator, and configure the necessary iCloud entitlements for your iOS and macOS app.

How does NSFileCoordinator work with iCloud Drive file synchronization?

NSFileCoordinator coordinates file access within ubiquitous containers during iCloud Drive synchronization, preventing data races when multiple processes or devices attempt to read and write to the same synced file simultaneously.

How do I resolve iCloud Drive file conflicts during synchronization?

Resolve iCloud Drive file conflicts during synchronization using NSFileVersion to detect, manage, and select the correct version of a file when conflicting edits occur across multiple Apple devices.

Can I use NSUbiquitousKeyValueStore to sync small app preferences across Apple devices?

Yes, you can use NSUbiquitousKeyValueStore to sync small application preferences across Apple devices, providing a lightweight alternative to file-based iCloud Drive synchronization for non-document data.

How do I check the download and upload status of iCloud Drive files?

Check iCloud Drive file download and upload status by inspecting URL resource values, querying the file's metadata to determine if a ubiquitous item is fully downloaded or still pending upload.

What iCloud entitlements do I need to configure for iCloud Drive integration?

Configuring iCloud Drive integration requires enabling the iCloud entitlement and specifying your app's ubiquitous container identifiers in your project's capabilities for iOS, iPadOS, and macOS.