Build problems on device but editor is fine

I’ve been developing my project without any issues throughout this year, deploying iterative builds successfully on both iOS and Android. Recently, my builds have not been working on both platforms but developing in the editor is fine. At this stage, I feel that the issue is linked to upgrading my Unity editor but I can’t be sure. (I’m using Unity 2019.2.9f1)

I found an error in the device logs stating a file related to masking wasn’t present. The mask error was fished out of logcat on Android and appeared to point to Unity internal resources, not specific to my project.

While testing on iOS, I removed the item from my scene that had a sprite mask component and found a new problem. It displayed a message that a shader ‘mobile/particles/alpha blended’ wasn’t supported. I haven’t changed much in my project recently as it’s almost finished & Unity 2019.1.14f1 worked fine.

I changed the material for the offending object to use ‘Sprites/Default’ and now I get a different error:

Metal: Error creating pipeline state (Hidden/Internal-GUITexture): depthAttachmentPixelFormat is not valid and shader writes to depth

I’ve checked my source control logs to verify I haven’t changed anything related to these errors. My recent updates are just animation values to polish things off. The only thing that stands out is the Unity version changes.

Now, I could theoretically avoid these issues by downgrading my Unity version but Unity crashes when I attempt this - so I’m fairly stuck.

Is this a bug? If so, I would have expected to find similar conversations but it seems I’m on my own with this one. Any advice?

1 Like

I am having very similar problems since upgrading different components on my Mac. I wasn’t sure if it was the OS upgrade to Catalina, iPhone upgrade to 13.1.x, Xcode upgrade, or Unity Upgrade. I receive the following errors:

Metal: Error creating pipeline state (Hidden/Internal-GUITextture): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachment.
Metal: Error creating pipeline state (Sprites/Default): Compiler encountered an internal error
Metal: Error creating pipeline state (UI/Default): Compiler encountered an internal error

There are followed by XPC_ERROR_CONNECTION_INTERRUPTED. Any insights on fixing this will be appreciated, I’m stuck.

I’ve encountered similar issues after upgrading my project to 2019.2.9f1

Metal: Error creating pipeline state (Sprites/Default): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachement.

Have you tried 2019.2.10f1? Did it solve this issue?

No.

Same issues here, I’m using 2019.2.12f1.

1 Like

Same problem here, with Unity 2019.2.12f, and I get my iOS device’s screen all purple, with that message in the console :frowning:
**Metal: Error creating pipeline state (Hidden/Internal-GUITexture): output of type half4 is not compatible with a MTLPixelFormat Invalid color attachment.**

Please submit a bug report.

Also sidenote: For platforms like mobile I would suggest you stay on LTS if you don’t want to be dealing with issues like this all the time.

I had same problem with Unity 2019.2.12f and 2019.2.15f.
but 2019.2.1f works correctly.