GhosttyKit 0.1.5 — iOS fix-forward
Fixes
Two patches to upstream Ghostty (2cc7341b) restore iOS support that 0.1.3 broke:
-
iOS surface attach. UIView's
layeris read-only on iOS — the metal layer must be added as a sublayer of the view's existing CALayer viaaddSublayer:(with the colon). The 0.1.3 build sent a no-argaddSublayerselector to the UIView, crashing withunrecognized selector. -
Metal storage mode.
hasUnifiedMemoryreturns false on the iOS Simulator, which made the renderer pick.managed. iOS Metal does not support.managedand assertsInvalid storageMode 1. Forced.sharedon iOS unconditionally.
Verification
- Termini
Tests/TerminiTests/SurfaceAttachTests_iOS(iPhone 16e simulator): 2 / 2 pass - Termini
TerminiTerminalAppearanceTests(font config): 6 / 6 pass - HudsonKitDemoIOS Terminal tab: live Ghostty surface renders end-to-end
Provenance
- Built from Ghostty source
2cc7341b08ca66d9efdfdd97b1ab3d49898d2677 - Patches archived at
patches/ghostty/0.1.5/ - SwiftPM checksum:
d9246242185d9ce5d4ee45fb0ff3fbc520aa995641dea9b198e43e1e4538b759
SwiftPM consumers
.binaryTarget(
name: "GhosttyKit",
url: "https://github.com/arach/TermBridgeKit/releases/download/0.1.5/GhosttyKit.xcframework.zip",
checksum: "d9246242185d9ce5d4ee45fb0ff3fbc520aa995641dea9b198e43e1e4538b759"
)