Unity as library crash: Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)
Hi, we have been using Unity as Library in a project that was working on iOS until two weeks ago. We had made no serious changes and now it crashes:
validateRenderPassDescriptor:702: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'
Versions:
-Unity 2020.1.13f1
-XCode 12.4, swift to integrate Unity Library to the app.
Packages:
- Wikitude
- ARFoundation
- Firebase
- Unity UI Extensions (Particle System)
- ARFoundation, plane detection.
We have tried:
- Disabling metal validation
- XCode setting: OpenGL ES instead of metal
- Crashes after loading the scene with wikitude camera (no use of ARFoundation in this scene), after a scene where we check ARFoundation support and camera permission on the device.
Answer by TheVirtualMunk · Nov 02, 2021 at 02:42 PM
Did you ever find a fix for this? Have exactly similar problem.
Your answer
Follow this Question
Related Questions
Unity 4.6 | 4.7 AdMob iOS Crash 0 Answers
Why does my mobile game crash when I deactivate mip mapping? 2 Answers
iOS - Video Player component crashes app!! 2 Answers
Random iOS Crash in Unity 2018.4.20f1 LTS 1 Answer
[Unity 2019.2] iOS build crashes 5 seconds after the application is killed by the user 2 Answers