Add generate_swiftinterface.sh scripts for GF and AG frameworks#48
Merged
Conversation
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.
238d9cc to
2d6cfa6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GF/generate_swiftinterface.shandAG/generate_swiftinterface.shto auto-generatetemplate.swiftinterfacefrom DeviceSwiftShims sources-module-name,-enable-upcoming-feature InternalImportsByDefault,-enable-experimental-feature Extern)update.shso template is regenerated before xcframework assembly#if compilerguards, matching native compiler outputTest plan
bash GF/update.sh— verify no errors and xcframework is correctbash AG/update.sh— verify no errors and xcframework is correctswift buildsucceeds