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.
Initial WIP on adding support for compiling for visionOS using cctools-port, like we do for iOS.
For now this only adds support for extracting the
XROS
andXRSimulator
SDKs from the Xcode xip, so that's not doing much.To (attempt to) make a build image that can target visionOS, we should copy
Dockerfile.ios
to a newDockerfle.visionos
and see how to change it to target this related platform.The work done by @naithar for tvOS a few years ago should be helpful:
Notably we might indeed need to write a custom wrapper, or patch cctools-port's current one in https://github.com/tpoechtrager/cctools-port/tree/1024.3-ld64-955.13/usage_examples/ios_toolchain to make it target visionOS instead of iOS.
I note that there's at least one user of cctools-port who tried to do that and had some issue:
I don't know if we'd run into the same, and if it's something we can help fix upstream.
CC @bruvzg @stuartcarnie @BastiaanOlij