Xcode Project Build Fails Due to Permissions

I have a VR game project to which I have added VisionOS support, but the Xcode project produced fails to build with the following error:

/bin/sh -c /Users/ryandawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-gxtujwakofqaadbmsxesiaxeqzkp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-xrsimulator/UnityFramework.build/Script-6E1E4F1B8F1F395756E8C231.sh

/Users/ryandawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-gxtujwakofqaadbmsxesiaxeqzkp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-xrsimulator/UnityFramework.build/Script-6E1E4F1B8F1F395756E8C231.sh: line 2: /Users/ryandawson/Dev/Owlchemy/TestProject/TestProjectVisionOS/Builds/VisionOS/TestProject/process_symbols.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code

/Users/ryandawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-gxtujwakofqaadbmsxesiaxeqzkp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-xrsimulator/UnityFramework.build/Script-6E1E4F1B8F1F395756E8C231.sh: line 2: /Users/ryandawson/Dev/Owlchemy/TestProject/TestProjectVisionOS/Builds/VisionOS/TestProject/process_symbols.sh: Permission denied

Command PhaseScriptExecution failed with a nonzero exit code

How can I resolve this issue?

I have same problem ;/ I added Vision OS support to exiting ios game and im getting same error in Xcode

I’ll reach out to the rest of the team and get back to you both. Hang tight.

I see xrsimulator in the path name. Are you perhaps targetting the simulator sdk in settings? If so, that is not going to work for this version of the plugin. We only support Device SDK, although currently that will ALSO work in simulator.

Based on the error, it sounds like the issue is that process_symbols.sh doesn’t have the executable bit set. There’s some discussion of this in the forums that may be relevant.

That’s seems odd to me as I have another VR application that I have made the same changes to, is built targeting the Simulator, and it works without issue.

Yes, manually changing the mode of the script will resolve the issue but I was wondering why I need to do that with this project when my other VR project works without issue.

Another VR application that you re-targeted to visionOS and changed the visionOS player settings target SDK to Simulator?

Yes, the project has the device target set to Simulator, creates a Xcode project, and that Xcode project builds without the process_symbols.sh error and runs in the Simulator.

Do you have any Unity Services enabled for the project that is generating the failing build? If so, is there one that is enabling crash or error reporting?

Yes, both of these projects are of currently released VR games with Unity Services (including crash and error reporting) turned on it both.

For the failing one, can you disable crash reporting and, rebuild the xcode project and see if that stops the issue?

Not sure if it help, but the working project does not have the process_symbols.sh script set as executable either and it also does not have the usymtools executables in the directory.

The working Xcode project has the following files:

drwxr-xr-x@ 18 ryandawson  staff   576 Sep 25 17:36 .
drwxr-xr-x@  5 ryandawson  staff   160 Sep 25 17:35 ..
drwxr-xr-x@ 24 ryandawson  staff   768 Sep 25 17:35 Classes
drwxr-xr-x@ 45 ryandawson  staff  1440 Sep 25 17:48 Data
drwxr-xr-x@  4 ryandawson  staff   128 Sep 25 17:35 Il2CppOutputProject
-rw-r--r--@  1 ryandawson  staff  2081 Sep 25 17:48 Info.plist
-rw-r--r--@  1 ryandawson  staff  3324 Sep 25 17:35 LaunchScreen-iPhone.storyboard
-rw-r--r--@  1 ryandawson  staff   128 Sep 25 17:35 LaunchScreen-iPhoneLandscape.png
-rw-r--r--@  1 ryandawson  staff   128 Sep 25 17:35 LaunchScreen-iPhonePortrait.png
drwxr-xr-x@ 10 ryandawson  staff   320 Sep 25 17:35 Libraries
drwxr-xr-x@  3 ryandawson  staff    96 Sep 25 17:35 MainApp
drwxr-xr-x@  3 ryandawson  staff    96 Sep 25 17:35 Unity-iPhone
drwxr-xr-x@  6 ryandawson  staff   192 Sep 25 17:35 Unity-iPhone Tests
drwxr-xr-x@  6 ryandawson  staff   192 Sep 25 17:48 Unity-iPhone.xcodeproj
drwxr-xr-x@ 10 ryandawson  staff   320 Sep 25 17:35 UnityData.xcassets
drwxr-xr-x@  4 ryandawson  staff   128 Sep 25 17:35 UnityFramework
-rw-r--r--@  1 ryandawson  staff   615 Sep 25 17:35 process_symbols.sh
-rw-r--r--@  1 ryandawson  staff   154 Sep 25 17:48 visionos_config.h

The non-working Xcode project has the following files:

drwxr-xr-x@ 22 ryandawson  staff       704 Sep 27 09:03 .
drwxr-xr-x   5 ryandawson  staff       160 Sep 25 17:33 ..
-rw-r--r--@  1 ryandawson  staff      6148 Sep 27 09:03 .DS_Store
drwxr-xr-x@ 24 ryandawson  staff       768 Sep 25 17:33 Classes
drwxr-xr-x@ 81 ryandawson  staff      2592 Sep 27 09:02 Data
drwxr-xr-x@  4 ryandawson  staff       128 Sep 25 17:33 Il2CppOutputProject
-rw-r--r--@  1 ryandawson  staff      2089 Sep 27 09:02 Info.plist
-rw-r--r--@  1 ryandawson  staff      3324 Sep 25 17:33 LaunchScreen-iPhone.storyboard
-rw-r--r--@  1 ryandawson  staff       128 Sep 25 17:33 LaunchScreen-iPhoneLandscape.png
-rw-r--r--@  1 ryandawson  staff       128 Sep 25 17:33 LaunchScreen-iPhonePortrait.png
drwxr-xr-x@ 11 ryandawson  staff       352 Sep 25 17:33 Libraries
drwxr-xr-x@  3 ryandawson  staff        96 Sep 25 17:33 MainApp
-rw-r--r--@  1 ryandawson  staff    891127 Sep 27 09:02 ShaderVariants.log
drwxr-xr-x@  3 ryandawson  staff        96 Sep 25 17:33 Unity-iPhone
drwxr-xr-x@  6 ryandawson  staff       192 Sep 25 17:33 Unity-iPhone Tests
drwxr-xr-x@  6 ryandawson  staff       192 Sep 27 09:02 Unity-iPhone.xcodeproj
drwxr-xr-x@  4 ryandawson  staff       128 Sep 25 17:33 UnityFramework
-rwxr-xr-x@  1 ryandawson  staff     70736 Sep 25 17:33 lzma
-rw-r--r--@  1 ryandawson  staff       615 Sep 25 17:33 process_symbols.sh
-rwxr-xr-x@  1 ryandawson  staff  16799936 Sep 25 17:33 usymtool
-rwxr-xr-x@  1 ryandawson  staff  17193202 Sep 25 17:33 usymtoolarm64
-rw-r--r--@  1 ryandawson  staff       154 Sep 27 09:02 visionos_config.h

@joejo Confirmed! Turning off Cloud Diagnostics in Project Settings resolved the issue with process_symbols.sh.

Thank you. Can you file a bug with a small repro project and paste the bug id here?

Same problem here. Where exactly can I disable “Cloud Diagnostics” in the Project Settings? I searched for it, but can’t find it.