Skip to content

WIP: visionOS build container #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

WIP: visionOS build container #152

wants to merge 2 commits into from

Conversation

akien-mga
Copy link
Member

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 and XRSimulator 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 new Dockerfle.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

akien-mga added 2 commits May 15, 2025 20:56
- Fedora 42
- SCons 4.9.1
- MinGW 12.0.0 with GCC 14.2.1 and binutils 2.43.1
- Android NDK r28b, API 25
- Emscripten 4.0.8
- Xcode 16.3 (macOS 15.4, iOS 18.4)
@bruvzg
Copy link
Member

bruvzg commented May 16, 2025

Notably we might indeed need to write a custom wrapper, or patch cctools-port's current one in

Probably, since it's adding -miphoneos-version-min and it should be replaced with -mtargetos=xros2.0. Platforms should be similar, so at worst case, I would expect patching LC_BUILD_VERSION (like we did with iOS simulator).

@Calinou Calinou added the enhancement New feature or request label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants