How CheatSheet decides which OS versions it runs on, which SDK it ships against, and how a new major iOS release gets adopted without destabilising the version that is on the App Store.
| Platform | Minimum (deployment target) | Built against (SDK) | Toolchain | Test runtime |
|---|---|---|---|---|
| iOS / iPadOS | 26.0 | 27.x | Xcode 27 | iOS 26.5+ |
| macOS | 26.0 | 27.x | Xcode 27 | macOS 26+ |
These are independent knobs, and conflating them is the most common way a small app either sheds users or gets rejected at upload.
- Deployment target: the oldest OS that can install the app. Raising it removes users. It is a product decision, never a housekeeping one.
- SDK: what the code is compiled against. Apple periodically raises the minimum SDK it will accept for submission, and it never accepts a beta SDK. Raising the SDK removes nobody.
The floor may never exceed the SDK: xcodebuild refuses to build when the
deployment target is later than the SDK it is given. A floor below the SDK is
the normal, supported case.
Set 2026-09-01. Every OS-conditional path in the app was a Liquid Glass gate:
GlassEffectContainer, glassEffect(_:in:), and the .glass /
.glassProminent button styles, all introduced in 26.0. With the floor at 26.0
those gates are unconditionally true, so they were removed:
CheatSheetApp/Sources/ViewModifiers.swift now calls the Liquid Glass API
directly (as did LiquidGlassGroup.swift until it was deleted as unused on
2026-09-18), and the two platform arms collapsed into one #if os(macOS) || os(iOS)
branch. There are no #available or @available checks left in the codebase.
26.0, not a point release. Nothing in the app requires a 26.x point release, so a 26.1–26.5 floor would delete exactly the same code while supporting fewer devices. Pick the lowest floor that makes the code you actually want to delete unreachable.
Raise the floor again only when a specific feature the app needs demands it and the gated fallback has become a maintenance burden. A newer OS existing is not enough on its own. The previous floor (iOS 18 / macOS 15) was retired because it had stopped being a real configuration: every gate behind it was a fallback nobody was shipping against, and no iOS 18 simulator remained to test it on.
Scripts/resolve-ios-simulator.sh picks the newest available simulator at or
above a floor, defaulting to 26.5 and overridable with
CHEATSHEET_MIN_IOS_RUNTIME. Below the floor it fails with a per-runtime
breakdown rather than substituting an older runtime. A green suite that ran
against an unsupported configuration certifies nothing.
There is a ceiling as well as a floor: runtimes from a newer major than the
active simulator SDK are excluded. simctl keeps listing a beta OS runtime as
available after you switch back to the release Xcode, and "newest wins" would
otherwise send every shipping test run onto the beta OS. Because the ceiling
comes from the toolchain, an iOS 27 branch needs no special case: selecting
Xcode 27 raises it automatically.
It matches device family on deviceTypeIdentifier, not the display name: a
simulator can be renamed to anything and still be an iPhone, and name matching
silently hid four real iPhone simulators on this machine.
A machine that carries an Xcode beta will silently build against the beta SDK,
and the rejection only surfaces at upload. Scripts/verify-build-sdk.sh asserts
the active toolchain matches the SDK major this branch ships against.
Scripts/verify-build-sdk.sh # hard fail on mismatch, run before archiving Scripts/verify-build-sdk.sh --warn # warn only, used by Scripts/verify-macos.sh
The expected major is a branch-level contract, defaulting to 27 and overridable:
CHEATSHEET_EXPECTED_SDK_MAJOR=28 Scripts/verify-build-sdk.sh
ci_scripts/ci_post_clone.sh runs the hard-fail form as the first thing Xcode
Cloud does after cloning, so the pin is asserted rather than assumed. Local
verification warns instead of failing, because developing against a beta is
fine, but archiving against one is not.
Scripts/verify-project-config.sh separately asserts the deployment floors in
project.yml, so a regression to an older target fails the Xcode Cloud build
instead of shipping. See "CI provider" below for how the pieces fit together.
CheatSheet builds and tests on Xcode Cloud. It previously ran on GitHub Actions, which was dropped because macOS runners bill Actions minutes at a 10x multiplier on every GitHub plan, and a free-tier account has no minutes left over for iOS work once that multiplier applies. Xcode Cloud comes with its own free monthly build-hour allotment tied to the Apple Developer Program and produces an archive that can go straight to TestFlight, something GitHub Actions never did for this project.
CheatSheet.xcodeproj is gitignored, so the first thing any CI provider needs
to do is regenerate it from project.yml. ci_scripts/ci_post_clone.sh does
that, then runs Scripts/verify-build-sdk.sh,
Scripts/verify-project-config.sh, and Scripts/verify-localization.sh, the
same fast, toolchain-independent checks the old GitHub Actions pipeline ran
before its simulator work.
Xcode version selection is a workflow setting in App Store Connect, not a
repository file: open the workflow's Environment tab and choose a specific
Xcode build from the version dropdown, never "Latest Beta," for any workflow
that produces a submission archive. A .xcode-version file at the repository
root pins the version for local tooling and for opening the project in Xcode
directly; treat the Environment tab setting as the one that actually governs
an Xcode Cloud build, since real-world reports of Xcode Cloud not always
honoring that file mean it should not be relied on alone.
Measured 2026-08-31 on Xcode 27.0 beta (build 27A5252f), iOS 27.0 SDK:
- The app compiles clean against the iOS 27 SDK.
CheatSheetiOSbuilt againstiPhoneSimulator27.0.sdk: 91 Swift compile actions, 0 warnings, 0 deprecations. (Measured while the floor was still 18.0; the floor has since risen to 26.0, which only removes code.) - Every Liquid Glass API the app uses survives iOS 27, with no deprecation
or renaming:
GlassEffectContainer,glassEffect(_:in:),Glass.tint(_:),Glass.interactive(_:),.glass,.glassProminent. GlassButtonStyle.init(_ glass:)is marked@available(iOS 26.1, *), an opt-in refinement the app does not currently need.
Caveat: this is a beta SDK and can change before release. The finding means there is no known iOS 27 migration debt today; it is not a guarantee. Re-run the trial build against each new beta and against the GM.
Reproduce the trial build:
xcodegen generate --spec project.yml
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild build \
-project CheatSheet.xcodeproj -scheme CheatSheetiOS \
-destination "id=$(Scripts/resolve-ios-simulator.sh)" \
-derivedDataPath /tmp/CheatSheet-iOS27-DD CODE_SIGNING_ALLOWED=NOThe released line stays shippable at all times; work for the next OS major happens beside it.
This sits on top of the single-branch flow in CONTRIBUTING.md.
| Branch | Floor | SDK contract | Purpose |
|---|---|---|---|
main |
26.0 | 27 | Released and next release. Always submittable. |
feature/ios-28-readiness |
26.0 | 28 | Long-lived OS adoption branch off main, created when needed. |
Why a feature branch and not a permanent parallel branch. A permanent
ios-27 branch rots: it accumulates conflicts against every release, and the
merge back becomes a big-bang event exactly when time is shortest. Keeping it as
a long-lived but thin feature branch keeps the merge cheap.
Rules for the readiness branch:
- Keep it thin. Only the SDK contract, CI variant, and genuinely 27-gated
adoption belong on it. Ordinary features go to
mainas usual. - Merge
maininto it on a regular cadence (weekly, or after every merge tomain). Never let it drift. - It may be red while a beta is broken.
mainmay never be red.
Note that adopting the iOS 27 SDK does not imply an iOS 27 floor. Those are separate decisions, governed by the rule above.
Phase 0: baseline (done, 2026-08-31). iOS 26 SDK contract made explicit and enforced in CI. iOS 27 trial build proves zero migration debt.
Phase 1: modern-only floor (done, 2026-09-01). Floor raised to iOS 26.0 /
macOS 26.0, all availability gates removed, test-runtime floor set to iOS 26.5,
CI moved to the macos-26 runner so the macOS job can host a macOS 26 app.
Phase 2: beta season (until iOS 27 GM). Create
feature/ios-27-readiness off main when there is something to put on it.
On that branch set CHEATSHEET_EXPECTED_SDK_MAJOR=27 as an environment
variable on a dedicated Xcode Cloud workflow for the branch, and set that
workflow's Environment tab to the Xcode 27 beta. Re-run the trial build
against each beta. main does not move.
Phase 3: iOS 27 released, Xcode 27 released (SDK contract flipped, 2026-11-02).
The SDK contract on main moved from 26 to 27: the CHEATSHEET_EXPECTED_SDK_MAJOR
default, .xcode-version (27.2), the support matrix above, README.md and
CONTRIBUTING.md. feature/ios-27-readiness was never created, so there was
nothing to merge. The floor stays at 26.0. Still open: set the Environment tab
on each Xcode Cloud workflow to Xcode 27.2 in App Store Connect, run the full
device sweep, and tag main.
- Install the released Xcode 27; confirm
Scripts/verify-build-sdk.shpasses withCHEATSHEET_EXPECTED_SDK_MAJOR=27. - Flip the SDK contract on
main(see Phase 3) and merge the readiness branch. - Regenerate the project and run the full suite:
Scripts/verify-macos.sh, iOS unit tests, iOS UI tests. - Verify the widgets on an iOS 27 device: App Group sharing and timeline reloads are the parts most likely to regress across a major release.
- Check Liquid Glass rendering on 27 against the 26 screenshots.
- Confirm the app still installs on a simulator at the declared floor (iOS 26.0), not only on the newest runtime.
- Bump the build number, archive, and confirm the archive's SDK before upload.