If you’re doing CI on Intel machines but need to build for visionOS:
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
(Run this before xcodebuild -downloadPlatform visionOS)
I have no idea whether this actually works for real development but I needed it for GitHub Actions, because those run on Intel by default. I would venture a guess at “yes” because this is enabled on Apple internal builds and they are stingy with hardware refreshes for engineers
@saagar Really thanks for sharing, you saved my some hours (I credited it to you, please tell me if you dont like it
https://github.com/cinderella-project/iMast/commit/19839be383574380438893044738d32eeaff57b1 )

ci: Use matrix to parallel build and add workaround for visionOS on GHA · cinderella-project/iMast@19839be
📱🐘 3rd-party Mastodon Client for iOS. Contribute to cinderella-project/iMast development by creating an account on GitHub.
GitHub