Skip to content

fix(apple): contain measurement construction failures - #1105

Merged
andiwand merged 3 commits into
mainfrom
review/87-apple-measures
Oct 5, 2026
Merged

andiwand merged 3 commits into
mainfrom
review/87-apple-measures

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Invalid Apple Measure(string:) input lets a C++ exception escape into Swift. Guard Measure(string:) and expose failure as nil; the changelog calls out its now-failable Swift signature. Measure(magnitude:unit:) cannot fail and keeps its signature.

One Swift test covers valid and invalid construction. All 58 macOS Swift tests pass against the locally built framework; an Objective-C++ reproducer catches the escaping exception on the parent. Local dependency deployment targets do not validate macOS 12 or iOS compatibility.

@andiwand
andiwand force-pushed the review/86-binding-file-reads branch from 94f43af to 2b6d955 Compare October 5, 2026 20:58
Base automatically changed from review/86-binding-file-reads to main October 5, 2026 20:59
andiwand and others added 2 commits October 5, 2026 22:59
It stores a magnitude and a unit and cannot fail, so it keeps its
nonnull Swift signature. Only Measure(string:) parses and becomes
failable.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/87-apple-measures branch from fac4214 to 916a914 Compare October 5, 2026 21:02
@andiwand andiwand changed the title fix(apple): contain measurement construction failures fix(apple)!: contain measurement construction failures Oct 5, 2026
A signature change in a binding wrapper is not breaking.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand andiwand changed the title fix(apple)!: contain measurement construction failures fix(apple): contain measurement construction failures Oct 5, 2026
@andiwand
andiwand merged commit 782708e into main Oct 5, 2026
23 checks passed
@andiwand
andiwand deleted the review/87-apple-measures branch October 5, 2026 21:06
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