Skip to content
SwiftSkills

App Clips with AI agents

Add an App Clip target in the same Xcode project as the full app, keep the clip small, and handle every invocation URL in both targets. Use the appclips Associated Domains service and an AASA file for website or pre-iOS 16.4 invocations. Configure the default experience in App Store Connect. Look up Apple's App Clip docs first.

Last updated:

Apple facts are from "App Clips", "Creating an App Clip with Xcode", "Choosing the right functionality for your App Clip", "Configuring App Clip experiences", "Associating your App Clip with your website", "Responding to invocations", "Sharing data between your App Clip and your full app", "Supporting associated domains" and "Associated Domains Entitlement" on developer.apple.com. Tool facts are from each README. Stars as of 13 Nov 2026.

What Apple documents

  • An App Clip is a lightweight version of your app that offers some of the app’s functionality, instantly, or a demo version of the app. App Clips do not appear on the Home screen the way full apps do; the system removes an App Clip after a period of inactivity.

  • An App Clip requires a corresponding full app that offers at least the same functionality as the App Clip. You use the same Xcode project for both. Your full app can offer multiple App Clip experiences, but you have to package them as a single App Clip target.

  • In Xcode, add a new target from the App Clip template. Xcode adds a scheme, the On Demand Install Capable capability (com.apple.developer.on-demand-install-capable), the com.apple.developer.parent-application-identifiers entitlement, an App Clip app identifier that uses the full app’s identifier as its prefix, and a build phase that embeds the App Clip in the app. When you archive the app, Xcode adds com.apple.developer.associated-appclip-app-identifiers to the full app. Share as much code and as many assets as possible; you can exclude clip-only or app-only code with an Active Compilation Conditions value such as APPCLIP.

  • Aim to keep the uncompressed App Clip binary well below the applicable limit. On devices running iOS 17 and later, that uncompressed binary can be up to 100 MB if the clip only supports digital invocations, does not support physical invocations such as App Clip Codes, QR codes or NFC tags, is used where a reliable internet connection is likely, and does not support iOS 16 and earlier. The App Clip demo link that App Store Connect generates also allows the 100 MB limit while supporting physical invocations. Measure size from an app-size report after you export an Ad Hoc or Development build with App Thinning enabled.

  • People discover an App Clip when and where they need it — for example by scanning an App Clip Code, NFC tag or QR code, tapping a Maps link, a Smart App Banner, a link in Messages, or a link on a website — not by searching the App Store for the clip. The system verifies the invocation URL against the URL you registered in App Store Connect, populates the App Clip card, and passes the invocation URL to the clip. In some cases the clip does not receive an invocation URL on launch; handle that case in your code.

  • When people install the corresponding app, the full app replaces the App Clip. Every invocation from that moment on launches the full app instead, so the full app must handle all invocations and offer the same functionality.

  • Every App Clip needs a default App Clip experience in App Store Connect (header image, subtitle and call-to-action). App Store Connect can generate a default App Clip link, and a demo link, that work without changes to your server. Associate the clip with your website when you want website invocations, a Smart App Banner or App Clip card on the site, or support for iOS 16.3 and earlier. Configure advanced App Clip experiences for additional domains, a physical location or multiple businesses. Keep App Clip card title text to 30 characters and the subtitle to 56 characters. You cannot change the card’s content programmatically.

  • To associate the App Clip with a website, add the Associated Domains capability to both the app and App Clip targets, using the pattern appclips:<fully qualified domain>. Include only the desired subdomain and the top-level domain; do not include a trailing slash, a wildcard, or path and query components. Host apple-app-site-association at https://<fully qualified domain>/.well-known/apple-app-site-association over HTTPS with a valid certificate and no redirects, and list the App Clip’s app identifier under the appclips service (apps). If you use multiple invocation domains, each domain needs its own file and its own entitlement entry. Starting with iOS 14, devices fetch the file through Apple’s associated-domains CDN.

  • On launch, confirm the activity type is NSUserActivityTypeBrowsingWeb and read webpageURL. In SwiftUI, use onContinueUserActivity(_:perform:). In a scene-based lifecycle, implement scene(_:willConnectTo:options:) and the continue-user-activity callbacks. If you still use the app delegate, implement application(_:continue:restorationHandler:); the invocation URL is not available in application(_:didFinishLaunchingWithOptions:). Guard against faulty data, handle prefix URLs you registered, and restore saved state when the invocation URL is missing (for example when the user returns from the App Switcher or a notification).

  • To transition data into the full app, use a shared App Group container or shared UserDefaults, the keychain (starting in iOS 15.4 the full app can read items the clip stored), public CloudKit reads starting in iOS 16, or Sign in with Apple. An App Clip cannot write to the public CloudKit database, and cannot use iCloud Documents, iCloud key-value storage, or private or shared CloudKit containers. An App Clip cannot access keychain items the full app stored. Do not store passwords in the shared container or user defaults.

  • App Clips have further limits that protect privacy and keep launches fast. Several frameworks, including App Intents, HealthKit, PhotoKit, BackgroundTasks, CallKit and Contacts, provide no functionality at runtime. App Clips cannot perform background activity such as background URLSession or Background Modes. They cannot use Face ID (NSFaceIDUsageDescription is not available) but can use Touch ID through Local Authentication. They cannot request tracking authorization or continuous location access; requestWhenInUseAuthorization() is allowed and resets automatically the next day at 4:00 a.m.

Universal Links use the Associated Domains applinks service. This page uses appclips and the App Clip target. See Universal Links with AI agents.

Rules for AGENTS.md

Code

- Offer an App Clip only as a target in the same Xcode project as the corresponding full app. The full app must include at least the same functionality as the App Clip and must handle every invocation URL after it replaces the clip.
- Keep the uncompressed App Clip binary well below the applicable size limit. Measure it with an app-size report from an Ad Hoc or Development export with App Thinning enabled.
- Handle NSUserActivityTypeBrowsingWeb / webpageURL in both the App Clip and the full app. Guard against missing or malformed invocation URLs and restore saved state when no URL is present.
- For website or pre-iOS 16.4 invocations, add Associated Domains with appclips:<domain> on both targets and host apple-app-site-association at /.well-known/ over HTTPS with no redirects, listing the App Clip app identifier under the appclips service. Do not put a path, query, trailing slash or wildcard in the entitlement.
- Do not use Face ID, HealthKit, PhotoKit, background URLSession, Background Modes, or CloudKit writes in the App Clip. Look up Apple's App Clip docs before adding the target, entitlements or invocation handler.

Step 1: ground the agent in Apple's App Clip docs

Install Apple Docs MCP or Sosumi and ask it to open “Creating an App Clip with Xcode”, “Configuring App Clip experiences”, “Associating your App Clip with your website” and “Responding to invocations”.

Step 2: add the target and share code

Have the agent add an App Clip target to this Xcode project, share code and assets with the full app, and exclude app-only code with an Active Compilation Condition if needed. Ask it to plan a size-report check before you rely on a large asset catalog in the clip.

Step 3: handle invocations and association

Implement the continue-user-activity path in both targets. If you need website or pre-iOS 16.4 invocations, add appclips: Associated Domains on both targets and draft the appclips entry in apple-app-site-association. Remind the agent that a default App Clip experience in App Store Connect is required, and that default or demo links can be enough if you do not need a website association.

Step 4: review the SwiftUI in the clip

Run swiftui-pro on the screens the invocation URL opens, so the in-the-moment UI stays small, accessible and current.

Tools compared (4)

ToolBest forAgents (README)Install (README)LicenseStarsLast push
Apple Docs MCP (kimsungwhee)Look up App Clip, Associated Domains and NSUserActivity APIsClaude Code, Cursor, VS Code, Windsurfclaude mcp add apple-docs -- npx -y @kimsungwhee/apple-docs-mcp@latestMIT138717 Mar 2026 ⚠
sosumi.ai (NSHipster)Pull Apple App Clip docs as Markdownany MCP hostnpx -y mcp-remote https://sosumi.ai/mcpMIT49113 Nov 2026
ApKI (Gucky)Route the agent to official Apple developer resourcesCodex, Claude Codenpx skills add https://github.com/Gucky/ApKI --skill apkiMIT23 Nov 2026
swiftui-pro (twostraws)Modern SwiftUI around the screens an invocation opensClaude Code, Cursor, Codex, Gemininpx skills add https://github.com/twostraws/SwiftUI-Agent-Skill --skill swiftui-proMIT654726 Oct 2026

⚠ = no push in the last 4 weeks.

Which one to pick

  • Official API lookup → Apple Docs MCP or Sosumi.

  • A short route into Apple's current developer resources → ApKI.

  • SwiftUI around the App Clip screens → swiftui-pro.

A prompt that keeps the agent honest

Code

Add an App Clip target to this Xcode project for a focused order flow. Share as much code as possible with the full app. The full app must include the same functionality and must handle every invocation URL after it replaces the clip. Handle NSUserActivityTypeBrowsingWeb and webpageURL in both targets; restore saved state if no invocation URL is present. For website invocations, add Associated Domains with an appclips entry only (no path, query, trailing slash or wildcard) and draft apple-app-site-association with the App Clip app identifier under the appclips service, hosted over HTTPS with no redirects. Do not use Face ID, HealthKit, PhotoKit, background URLSession or CloudKit writes in the App Clip. Look up “Creating an App Clip with Xcode”, “Configuring App Clip experiences”, “Associating your App Clip with your website” and “Responding to invocations” in Apple's docs before you add the target or the handler.

FAQ

Do I need a website and an apple-app-site-association file for an App Clip?
Not always. If you do not support iOS 16.3 and earlier, do not need every invocation type, and do not have a website to associate, you may be able to use the default App Clip link that App Store Connect generates, with no server changes. To support invocations from your website, or devices running iOS 16.3 or earlier, add Associated Domains (`appclips`) to both the app and App Clip targets and host `apple-app-site-association` with the App Clip’s app identifier listed under the `appclips` service.
What happens when someone installs the full app?
The full app replaces the App Clip. Every invocation from that moment on launches the full app instead, so the full app must handle all invocation URLs and offer the same functionality. Share the handler code, and move clip data into the app with a shared App Group or `UserDefaults`, the keychain (from iOS 15.4), a public CloudKit read (from iOS 16), or Sign in with Apple.
How large can an App Clip be?
Aim to keep the uncompressed App Clip binary well below the applicable limit. On iOS 17 and later, that uncompressed binary can be up to 100 MB if the clip only supports digital invocations, does not support physical invocations such as App Clip Codes, QR codes or NFC tags, is used where a reliable internet connection is likely, and does not support iOS 16 and earlier. The App Clip demo link also allows that 100 MB limit while supporting physical invocations. Measure size with an app-size report from an Ad Hoc or Development export with App Thinning enabled.
Which tools should the agent use first?
Apple Docs MCP or Sosumi, so the agent opens “Creating an App Clip with Xcode”, “Configuring App Clip experiences”, “Associating your App Clip with your website” and “Responding to invocations” instead of inventing entitlements or handlers. Add swiftui-pro for the SwiftUI around the screens the invocation opens.
Can the App Clip use Face ID, HealthKit or background tasks?
No. Apple documents that frameworks including App Intents, HealthKit, PhotoKit and BackgroundTasks provide no functionality at runtime in an App Clip. App Clips cannot use Face ID (`NSFaceIDUsageDescription` is not available) but can use Touch ID through Local Authentication. They cannot perform background activity such as background `URLSession` or Background Modes, and they cannot write to CloudKit. They may request When In Use location authorization, which resets the next day at 4:00 a.m.