Build the App Clip scheme, install it in a booted simulator, launch it with the _XCAppClipURL environment variable, and check the thinned size against Apple's limit. An App Clip has to launch in seconds from an NFC tap, QR scan or Safari banner, and App Store Connect refuses an upload whose variant is over the size cap. A remote Mac lets you reproduce the invocation flow without owning a Mac, or give a CI runner a build host.
What does an App Clip target add to my Xcode project?
An App Clip is a separate target (often MyAppClip) with its own Info.plist and .entitlements, usually sharing code with the full app through a Swift package or a shared framework. Per Apple's App Store Connect reference on maximum build file sizes, the limit applies to the uncompressed main bundle of any App Clip variant after App Thinning:
| Minimum deployment target | Maximum variant size | Invocation |
|---|---|---|
| Earlier than iOS 16 | 10 MB | Any |
| iOS 16+ | 15 MB | Physical (NFC, QR, App Clip Code) or digital |
| iOS 17+ | 100 MB | Digital only; physical invocations still cap at 15 MB |
If your clip supports any physical invocation path, assume the 15 MB cap. Use SF Symbols, defer heavy images to the network, and avoid pulling in whole frameworks for one call. Apple's App Clips documentation lists the current entitlement set.
How do I build only the App Clip target?
Build and install the clip against a booted simulator on the remote Mac:
xcrun simctl boot "iPhone 16"
xcodebuild \
-project MyApp.xcodeproj \
-scheme MyAppClip \
-destination 'platform=iOS Simulator,name=iPhone 16' \
-configuration Debug \
CONFIGURATION_BUILD_DIR="$(pwd)/build/clip" \
build
xcrun simctl install booted "$(pwd)/build/clip/MyAppClip.app"
Replace MyApp.xcodeproj and MyAppClip with your own project path and clip scheme name. This is an untested example, so run it against your own project and check the output.
How do I simulate an invocation URL?
Use the _XCAppClipURL environment variable, which is Xcode's documented way to simulate an App Clip invocation (set it on the scheme's Run action). From the command line, pass it through simctl launch --console-pty:
xcrun simctl launch --console-pty booted \
com.example.MyAppClip \
_XCAppClipURL=https://example.com/menu?table=12
The simulator synthesises an NSUserActivity of type NSUserActivityTypeBrowsingWeb whose webpageURL matches that value, which is what your scene delegate sees in scene(_:continue:). Test every URL prefix you will register in App Store Connect: a ?table=12 vs ?table=0 branch, a locale segment, a tracking suffix. A mismatch between the registered prefix and the URL your handler receives is the usual cause of invocations that break only in production.
How do I check the 15 MB cap?
Use this worksheet beside a one-time Release build, and replace the sample numbers with du -sm output from your own .app bundle. The numbers below are an example, not a measurement.
| Item | Example size | Notes |
|---|---|---|
| Main executable | 2.4 MB | arm64 slice only after thinning |
Assets.car (thinned) | 6.1 MB | Export from Xcode Organizer's size report |
| Localised resources | 0.8 MB | Only shipped locales |
| Third-party XCFrameworks | 3.9 MB | Drop any used once at launch |
| Other bundle contents | 0.6 MB | Fonts, JSON, nib |
| Total | 13.8 MB | Under the 15 MB physical-invocation cap |
Headroom in the example is 15 − 13.8 = 1.2 MB. A planned 2 MB asset would put it over, so move it behind a Background Assets download or trim Assets.car. Xcode's Organizer "App Thinning Size Report" is the authoritative per-variant number App Store Connect enforces. du -sm is a quick upper bound to run between full archives.
Where does the App Clip card metadata live?
In App Store Connect. The card (header image, subtitle, action label) is configured on the App Clip Experience and does not need a new binary. The prefix you register there must match the URLs you fed into _XCAppClipURL during testing. Register a default experience early, so the simulator URLs, the physical NFC payload and the production card all resolve to the same code path.
Which Figment Mac plan fits App Clip work?
The Intel Mac VM ($25 a month, $2 a day) runs macOS Sequoia and fits App Clip work on Xcode 26.3 or earlier, including an outbound CI agent. Choose the Apple Silicon Mac VM ($39 a month, $6 a day) for Xcode 26.4 or later or for simulator runtimes that need arm64; check the macOS version shown before purchase against Apple's Xcode requirements. Compare plans at /mac-hosting.
For comparison, CloudMac lists a whole Mac mini M4 (16 GB, 256 GB) at $99.99 a month, with a $999 annual price of $83.25 a month. Its 256 GB row showed "Reserve now" and the 512 GB and 1 TB rows showed fully reserved when checked on 2026-11-10. Twelve months of Figment's Apple Silicon Mac VM is 12 × $39 = $468 on a shared VM; the Dedicated M4 Pro 48 GB, a whole Mac, is $3,228 paid up front for 12 months.
Related reading: