The Problem
LLMs are trained on last year’s data, and as soon as they’re released, the data is stale. This is especially true for Apple’s SDKs, which shift from under us yearly at WWDC while the LLMs continue to be far behind. To account for this, LLMs might search the web to find the new information. But not always…
The problem is that LLMs think they know the up-to-date SDKs, so by default, they will write the code and just make it work with what they have, especially for older SDKs that they don't know have been updated. For example, ask an agent to create a button, and it might use the standard old button styles it learned during training, completely missing the new Liquid Glass versions introduced at WWDC. The code works, but it misses the new design.
The Solution
AskAppleDocs! Have your agent load the latest Apple SDK APIs that are hyper-relevant to your task, without the context bloat that comes with web searches.
Sample Prompts
- What’s new in SwiftUI that’s relevant to my project?
- How can I detect the hinge angle on iPhone Duo?
- How do I use the new @State macro?
- Audit my project for deprecated APIs and recommend replacements.
- How can I extend my background image behind the navigation panel, like in Apple’s Landmarks project?
How it works
This tool has two parts:
- The
askappledocsCLI reads the SDK in your Xcode and Apple’s documentation, then outputs the relevant information as text.
- The Claude / Codex skill teaches your agent how to use the tool.
Features
- Find new APIs. See what's new in SwiftUI and other Apple frameworks in the SDK installed with your version of Xcode.
- Find APIs by what they do. Describe what you need, and AskAppleDocs finds new APIs whose names or documentation comments match your search terms.
- Read Apple's documentation. Get a concise summary of Apple's documentation for any API, including its availability for your deployment target.
- Find deprecated APIs. See which APIs are deprecated in the frameworks your project imports, along with recommended replacements.
- Use fewer tokens. Your agent gets the specific API information it needs, rather than entire documentation pages.
- Check APIs before using them. The skill teaches Claude Code to read Apple's documentation before writing code with an API and to check for deprecated APIs before migrating existing code.
