Skip to content

Add GutenbergKitResources target#315

Closed
mokagio wants to merge 13 commits intotrunkfrom
xcframework-resources
Closed

Add GutenbergKitResources target#315
mokagio wants to merge 13 commits intotrunkfrom
xcframework-resources

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Feb 10, 2026

What?

Why?

How?

Testing Instructions

Accessibility Testing Instructions

Screenshots or screencast

mokagio and others added 8 commits February 9, 2026 21:10
Introduces a new `GutenbergKitResources` target to host
the built Gutenberg web assets as a separate module.

`Package.swift` uses `GUTENBERGKIT_SWIFT_USE_LOCAL_RESOURCES`
env var to switch between a local source target (development)
and a pre-built XCFramework binary target (releases).

Sets `packageAccess: false` on `GutenbergKit` — required
for binary target compatibility within the same package.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Required by `packageAccess: false` on the GutenbergKit
target, which enables binary target compatibility for
GutenbergKitResources within the same package.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace `Bundle.module` lookups in `EditorViewController`
and `HTMLPreviewManager` with the new module's API.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resources are now served by GutenbergKitResources.
The `Gutenberg/` directory is excluded from the target
and both build output directories are gitignored.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The script archives GutenbergKitResources for device and
simulator, creates an XCFramework, and outputs a zip with
checksum for SPM consumption.

Makefile changes:

- Set GUTENBERGKIT_SWIFT_USE_LOCAL_RESOURCES for all targets
- Copy dist output to GutenbergKitResources/Resources/
- Add build-resources-xcframework target

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Swift tests now build resources locally first
- Add XCFramework build step with artifact upload

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Modeled on wordpress-rs. The `release` lane:

1. Validates the version doesn't already exist
2. Updates Package.swift version and checksum
3. Tags, pushes, and creates a GitHub release
4. Uploads XCFramework zip to S3

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
These ~58 files are now generated during the build and
distributed via the GutenbergKitResources XCFramework.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
mokagio and others added 5 commits February 10, 2026 13:10
The XCFramework build failed because xcodebuild only
auto-creates schemes for products, not bare targets.
Test signing failed because CI lacks a code identity
for the new resource bundle.

---

Generated with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
xcodebuild requires -destination for SPM packages.

---

Generated with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The auto-generated GutenbergKit product scheme no
longer includes a test action now that there are
multiple products in the package.

---

Generated with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SPM archives on Xcode 26 no longer produce a usable .framework in
the archive Products directory. Assemble it manually from DerivedData
(binary, swiftmodule, modulemap, headers, resource bundles).

Also bump simulator destination to OS=26.1.

---

Generate with the help of Claude Code, https://code.claude.com

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mokagio mokagio closed this Feb 11, 2026
@mokagio mokagio deleted the xcframework-resources branch February 11, 2026 04:21
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