VisionOS Template Fails to Run in Simulator

After creating the Xcode project from the VisionOS Template Unity project, I am unable to get the project to run in the Simulator due to the following build link error:

ld: building for 'xrOS-simulator', but linking in object file (/Users/ryandawson/Dev/Unity/Apple/visionOSTemplate-0.1.0a/Builds/Libraries/libiPhone-lib.a[5](MeshSkinningNEON64_blzfc.o)) built for 'xrOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation

I have attempt to set the SDK in the Unity project to the simulator version but that seems to have no effect.

How can I get the VisionOS Template project to build and run successfully in the Simulator?

Hello,

you can find a fix to this here : Xcode build of Unity projects for … | Apple Developer Forums

Thanks, @Dyfer. That did solve my issue. It is interesting that I don’t have that issue with any of the other projects I produce Xcode projects from.

I assume there must be some setting in the project that is causing this. Anyone from Unity know what that might be?

Hey, not sure but this error only pops in when using Xcode-beta 4. There is no problem with Xcode-beta 2 which is the recommended version for Unity right now.

1 Like

More than just the recommended version, our 0.1.0 release is only compatible with Xcode beta 2. We will catch up to latest versions of Xcode in subsequent releases.

1 Like

That is great to know. I’ll uninstall beta 4 and install beta 2 then retest my current issues to see which are solved.

Out of curiosity, where might the documentation on the supported Xcode tools for this beta be at? I seem to have missed this.

No worries, we have requirements listed in our release notes, which are pinned at the top of the forum.

Apropos to this topic, does anyone have the a working link to Xcode 15 beta 2? I foolishly deleted the app from my computer and updated Xcode to 15 beta 3. Now when I return to the Apple developer site, I see Xcode 15 Beta 2 but the download link is broken!!

OK, the Xcode 15 Beta 2 download link works if you don’t select visionOS or any other options BEFORE you click download!

XCode 15 beta 2 link

For future reference.

1 Like

@mfuad , @DanMillerU3D XCode 15 beta 6 was also just released recently.

Any ETA when we can expect an update package with a more recent version of XCode 2 ?

(We are working on some other projects with XCode beta so less install is always better :wink:

Unity team, any update on getting new XCode version ?

1 Like