Skip to content

Add generate_swiftinterface.sh scripts for GF and AG frameworks#48

Merged
Kyle-Ye merged 4 commits into
mainfrom
feature/generate-swiftinterface-scripts
Apr 6, 2026
Merged

Add generate_swiftinterface.sh scripts for GF and AG frameworks#48
Kyle-Ye merged 4 commits into
mainfrom
feature/generate-swiftinterface-scripts

Conversation

@Kyle-Ye
Copy link
Copy Markdown
Member

@Kyle-Ye Kyle-Ye commented Apr 6, 2026

Summary

  • Add GF/generate_swiftinterface.sh and AG/generate_swiftinterface.sh to auto-generate template.swiftinterface from DeviceSwiftShims sources
  • Both use matching module compiler flags (-module-name, -enable-upcoming-feature InternalImportsByDefault, -enable-experimental-feature Extern)
  • Integrate into respective update.sh so template is regenerated before xcframework assembly
  • AG template now uses fully-qualified type names and #if compiler guards, matching native compiler output

Test plan

  • Run bash GF/update.sh — verify no errors and xcframework is correct
  • Run bash AG/update.sh — verify no errors and xcframework is correct
  • swift build succeeds

Kyle-Ye added 4 commits April 6, 2026 17:19
Script compiles DeviceSwiftShims sources against the Gestures xcframework
to produce template.swiftinterface, matching the real module's compiler
flags. Removes spurious leading blank line from template.
Script compiles DeviceSwiftShims sources against the AttributeGraph
xcframework to produce template.swiftinterface with matching module
flags. Generated output uses fully-qualified type names and includes
compiler feature guards, matching native compiler emit format.
AG requires Swift 6.1 (Xcode 16.4), GF requires Swift 6.2 (Xcode 26.3).
Scripts now check the compiler version and exit with a clear error if
mismatched. Also regenerates AG template with the correct Swift 6.1
compiler, removing erroneous #if compiler guards.
@Kyle-Ye Kyle-Ye force-pushed the feature/generate-swiftinterface-scripts branch from 238d9cc to 2d6cfa6 Compare April 6, 2026 10:02
@Kyle-Ye Kyle-Ye merged commit 537531e into main Apr 6, 2026
6 checks passed
@Kyle-Ye Kyle-Ye deleted the feature/generate-swiftinterface-scripts branch April 6, 2026 10:13
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