-
Notifications
You must be signed in to change notification settings - Fork 48
Support for visionos #148
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
base: master
Are you sure you want to change the base?
Support for visionos #148
Conversation
examples/apple/build_rust_deps.sh
Outdated
| #case "${TARGET_DEVICE_PLATFORM_NAME:-}" in | ||
| # *Appletvos*|*AppleTVSimulator*) | ||
| # # Build for tvOS (requires nightly toolchain and -Zbuild-std since tvOS is a Tier 3 target) | ||
| # cargo +nightly build -Zbuild-std --target aarch64-apple-tvos-sim --target aarch64-apple-tvos --release | ||
| # ;; | ||
| # *XROs*|*XRSimulator*|*xrsimulator*|*rxos*) | ||
| # # Build for tvOS (requires nightly toolchain and -Zbuild-std since tvOS is a Tier 3 target) | ||
| # cargo +nightly build -Zbuild-std --target aarch64-apple-visionos-sim --target aarch64-apple-visionos --release | ||
| # ;; | ||
| # *) | ||
| # # Default: Build for iOS (stable toolchain) | ||
| # # Device (arm64) | ||
| # cargo build --target aarch64-apple-ios --release | ||
| # # Simulator (arm64) | ||
| # cargo build --target aarch64-apple-ios-sim --release | ||
| # ;; | ||
| #esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bleh. I failed at figuring out how to get xcodebuild and the xcode GUI build button to work as expected when switching between targets and schemes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided that having a rust-toolchain.toml in the examples/apple directory is an okay compromise. I do not love it but fighting xcode is not fun.
I've tested this and it does work with my Apple Vision Pro simulator.