iOS Build Environment Help Center

Using VisionOS Migration assistant (step1, Mac)

append delete Diego FBravo

macOS: Sequoia 15.3.2
XCode 16.2
iOS and VisionOS SDKs installed

Hi Pierre-Marie,

tried to get the VisionOS SDK for the PC.
So I copied the original iOS command file, changed the WANTED_PLATFORM variable to "visionOS" and executed it on the Mac.

Here's the result:

-------------------------------------------------------------------------------

Welcome! This automated script will copy a few files from the visionOS SDK that are
necessary for the iOS Build Environment to work.

-------------------------------------------------------------------------------

Step 1. Let's see if Xcode is installed and if we have the visionOS SDK... yes.
visionOS SDK version: 2.2

Step 2. Getting Xcode's version.plist and the needed libraries...
zip error: Nothing to do! (/Volumes/ESD-USB/dev/SDK-visionOS.zip)
done.

Step 3. Zipping 'System' and 'usr' directories from XROS2.2.sdk...done.

Step 4. Zipping the Swift standard libraries from XcodeDefault.xctoolchain...
Looks like there's not enough space on your USB key.
Please try again with a key with at least 500 Mb free.
done.

Step 5. Saving the platform's Info.plist and product build version... done.

Step 6. Exporting your existing code signing identites... 2025-03-14 15:44:22.460 osascript[21947:437775] +[IMKClient subclass]: chose IMKClient_Modern
2025-03-14 15:44:22.460 osascript[21947:437775] +[IMKInputSession subclass]: chose IMKInputSession_Modern
2 found.

-------------------------------------------------------------------------------

Finished.
I have all the files I need. Now please reboot into Windows, open your USB key
there and run the second part of the migration assistant.

-------------------------------------------------------------------------------

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

For your info,
USB stick has more than 15Gb space left and I also tried running the script from a 933Gb free local disk but had the same error saying there was not enough free space available...

Lastly, when running the original script for iOS SDK, everything runs fine...

If you need more testing, happy to help!

merci,
Diego

:: @Diego FBravo added on 14 Mar ’25 · 15:18

For your info, even with the error messages, I got a 26Mb SDK-visionOS.zip file so I went to the PC, executed the step2 command, and then tried to build a Unity project for VisionOS and here is what I got from the iOS Build Environment windows:

ERROR: The target iPhone-target in this Xcode project is for the 'xros' platform, whereas your installed SDK is for 'iphoneos'. Either get a 'xros' SDK, or change this Xcode project's target to 'iphoneos'.

Running on Windows11,
iOS Builder v.3.70.3

Cheers,
Diego

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello Diego

The asset is called "iOS Builder" - and that's for a reason :-) Even if the toolchain's executables are well able to deal with other Apple platforms (such as macOS or VisionOS), the tools have to be called by hand, with the right command-line flags, and neither the migration scripts nor the master build script are able to deal with them natively.

I'm slowly converging things to the point where those alternate Apple platforms are natively supported by the scripts, but we're not there yet. Most of the things you'll see in the scripts related to those platforms are, in fact, untested. I'm not making much progress there because the demand is extremely marginal.

Nonetheless, if you wish to sponsor things so that progress is made here, I invite you to send me an email so we can discuss it.

Sorry if that was not the miracle you were hoping for :-)

append delete #2. Diego FBravo

No worries, my bad: I understood incorrectly in the Release Log you were looking for people to give you feedback on the visionOS version to make it work :)

Keep up the good work !

Merci !

append delete #3. Pierre-Marie Baty

Oh, sorry, it's me who understood incorrectly your post. I thought you were expecting this to actually work on the first try with visionOS. Well, thank you for the feedback then, it's noted :-)

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty