Skip to content

fix(app): keep the sample-library preview out of release builds - #163

Merged
aicayzer merged 1 commit into
mainfrom
fix/release-build
Oct 26, 2026
Merged

aicayzer merged 1 commit into
mainfrom
fix/release-build

Conversation

@aicayzer

Copy link
Copy Markdown
Contributor

The Xcode Cloud builds since v0.0.21 failed. After #161 fixed the build script, v0.0.24-rc1 still failed, and archiving that tag locally reproduced it: ItemRelationships.swift has a #Preview that uses SampleLibrary, which exists only in Debug builds, so a Release archive does not compile (introduced in #130).

The preview is now inside #if DEBUG, as the other previews that use SampleLibrary are. The hosted checks also build the Release configuration, so a Debug-only symbol used in shipping code fails a pull request instead of a tag.

Checks

A local Release build of this branch succeeds (it failed before). Review depth: checks only (a preview guard and a CI step, no behaviour).

@aicayzer
aicayzer merged commit 9701e21 into main Oct 26, 2026
4 checks passed
@aicayzer
aicayzer deleted the fix/release-build branch October 26, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant