Repository navigation
build(visionos): build for the visionOS Simulator with the public SDK - #1172
Merged
Merged
Conversation
Link CoreServices and libAccessibility on visionOS and stub _AXSHoverTextEnabled, which visionOS libAccessibility does not export. Keep the UIKit sensory feedback cache and generators on iOS; visionOS shares the empty feedback context. Add OpenSwiftUI_v6_0 availability to the hover effect content types, enable the SDK 26 additions on visionOS in OpenSwiftUIBase.h, and skip system module indexing on visionOS. HostingExample disables foreground vibrancy on visionOS until foreground material rendering is implemented.
CoreSVG, SFSymbols, and Gestures xcframeworks have no visionOS slices. Make their product dependencies and Swift defines iOS and macOS only, following the FeatureFlags pattern, so a visionOS build needs no OPENSWIFTUI_LINK_* environment. Remove the unused valued C define for CoreSVG.
The public visionOS Simulator SDK marks UIScreen and UIWindow.screen unavailable. Read the UIKit header overlay generated by DarwinPrivateFrameworks/Scripts/XR/install_xr_uikit_overlay.sh with -vfsoverlay and -ivfsoverlay on visionOS (OPENSWIFTUI_XR_OVERLAY, default ~/Library/Developer/OpenSwiftUI/XRSimulator/overlay.yaml), so visionOS compiles the same UIScreen code as iOS. Remove OPENSWIFTUI_INTERNAL_XR_SDK and its gates, the hard-coded visionOS contents scale, and the skipped keyboard frame conversion. Add the matching build settings to the Example project and document the visionOS Simulator build.
Build the OpenSwiftUI scheme for generic/platform=visionOS Simulator on runners labeled xcode-26.6 and visionos-simulator-2.5. The job generates the UIKit header overlay from the pinned DarwinPrivateFrameworks checkout and verifies that a visionOS Simulator destination is available.
Show the visionOS CI badge in the platform table. State that CI builds the visionOS Simulator without running tests, that the build needs the UIKit header overlay, and that visionOS device builds are not supported.
Pin DarwinPrivateFrameworks to b73f4d8, which adds the visionOS Simulator UIKit header overlay script used by the visionOS build.
🛠️ Tuist Run Report 🛠️Tests 🧪
Builds 🔨
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1172 +/- ##
==========================================
+ Coverage 29.42% 29.45% +0.03%
==========================================
Files 943 943
Lines 74695 74695
==========================================
+ Hits 21979 22004 +25
+ Misses 52716 52691 -25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
UIScreen,UIWindow.screen, andUIDevice.orientation, so visionOS compiles the same UIKit hosting code as iOS.OPENSWIFTUI_INTERNAL_XR_SDKflag and its conditional code, including the fixed visionOS contents scale and the skipped keyboard frame conversion.Closes #1156. Part of #1171.
Dependency