I coded a native visionOS App using Xcode on a MacBook in SwiftUI but I can't generate an archive for the AppleConnectStore. Apple states that:
so I should satisfy the dev requirements.
My Target is for visionOS alone. But I don't see a visionOS native visionOS in the Xcode product destination list.
When I select the Any visionOS Device (Designed for iPad, arm64) option the archive is generated and uploads but ends up in the iOS part of the AppleConnectStore. And when I select the Any visionOS Simulator Device (arm64, x86_64) then the archive won't build and the following error message occurs:
Any suggestions or pointers to tutorials showing the archive for visionOS step would be be greatly appreciated. Alan
Here's the nub... The scheme does not directly include a reference to the platform used, but it does directly reference the Targets config, which determines the platform used. I had assumed that I select the Target by placing the cursor on the Targets config when building the archive, but this is irrelevant 🤦♂️ And the Targets config used is specified in the Builds tab, not the archive tab (where I'd expected it)
Such a simple solution - now I finally understand the relation between Targets, Schemes and the builds.