VR App Crashes On Start-up

I have a VR application using the built-in render pipeline that is crashing on start-up with the following error:

-[IOGPUMetalCommandBuffer setProtectionOptions:], line 562: error 'setProtectionOptions: with uncommitted encoder'

This issue started out of the blue as I made some hand tracking test changes that I wanted to try out on device and upon rebuilding in Unity and attempting to run from Xcode this issue appeared.

Here are the steps I have take to troubleshoot:

  • Deleted the application from the device and re-deployed via Xcode
  • Reverted all project changes and re-built
  • Deleted the Xcode project completely and rebuilt
  • Deleted the Library folder, reimported, and rebuilt
  • Rebooted the device

I am at a loss as to how I caused this issue as the project built and ran on device prior to attempting to test some changes. Not sure if it is related, but I did download the VR application’s container a number of times and was puzzled to find the files I had written during a test run were not there.

Any ideas on how to resolve this issue?

I have no explanation for this one but after I uninstalled and reinstall Unity everything worked again. :confused: