Repository navigation
Add iOS Support - #8
Merged
Merged
Conversation
2 tasks done
bruvzg
self-requested a review
May 24, 2026 18:01
iMacHumphries
force-pushed
the
ios-support
branch
from
May 25, 2026 04:22
805bdbc to
8b5dfb7
Compare
Contributor
Author
|
Added |
Adds aarch64-apple-ios (device) and aarch64-apple-ios-sim (simulator) matrix entries to both ci.yml and publish.yml, bumps the accesskit-c submodule to 0.22.1 (first release with iOS adapters and a usable prebuilt-binaries archive), and adds a package-ios-xcframework job that combines the two iOS slices into AccessKit.xcframework via xcodebuild -create-xcframework. Locally verified on macOS: - cmake configure + build + install for both iOS targets produces lib/ios/arm64/static/libaccesskit.a and lib/ios-simulator/arm64/static/libaccesskit.a (valid arm64 archives). - xcodebuild -create-xcframework produces a well-formed AccessKit.xcframework with ios-arm64 and ios-arm64-simulator slices and a correct Info.plist (SupportedPlatformVariant=simulator). The xcframework lets Godot's iOS export template ship a single bundle that Xcode automatically slices at link time, so App Store builds include only the device slice (no simulator code in the .ipa). The xcframework job is duplicated between ci.yml and publish.yml, matching the existing matrix-duplication pattern in this repo. # Conflicts: # accesskit-c
Member
|
Thanks! |
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.
Note
AI-assisted: drafted with Claude Code and human-reviewed/tested.
Summary
Adds iOS device and simulator targets to the build matrix, bundled as a single
AccessKit.xcframework. This unblocks the in-progress Godot iOS AccessKit integration godotengine/godot#119698 which needs prebuilt iOS slices to link against.Changes
accesskit-c→ 0.22.1 (first release with iOS adapters from AccessKit/accesskit-c#94 and a usable prebuilt-binaries archive; 0.22.0 was skipped due to a release-pipeline issue).ci.ymlandpublish.yml):aarch64-apple-ios→lib/ios/arm64/static/libaccesskit.aaarch64-apple-ios-sim→lib/ios-simulator/arm64/static/libaccesskit.apackage-ios-xcframework(in both workflows): downloads the two iOS artifacts and runsxcodebuild -create-xcframeworkto producelib/ios/AccessKit.xcframework. Thepublishjob now depends on this so the xcframework lands in the release zip.Why xcframework?
iOS device and simulator slices have the same CPU (arm64) but different platform variants and cannot be
lipo-merged. An xcframework is Apple's official container that lets Xcode select the correct slice at link time based on the active SDK. The device-only slice ends up in App Store builds; no simulator code is shipped.Local verification
cmake -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos ...+ build + install produces a valid arm64libaccesskit.aat the expectedlib/ios/arm64/static/path.iphonesimulatoratlib/ios-simulator/arm64/static/.xcodebuild -create-xcframeworkproducesAccessKit.xcframeworkwithios-arm64andios-arm64-simulatorslices and a correctInfo.plist(SupportedPlatformVariant=simulatoron the second slice).