Skip to content

Conversation

@simlay
Copy link
Member

@simlay simlay commented Dec 19, 2025

I've tested this and it does work with my Apple Vision Pro simulator.

Comment on lines 29 to 45
#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
Copy link
Member Author

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant