Unity to iOS CAEAGLLayer' is deprecated issue

Hi all,

I have been brushing the dust off of an older (Unity 2017) Mapbox SDK project that finally got the go-ahead. I have updated all of my plug-ins, SDKs, etc. and it builds fine out of Unity. However, in XCode, I always receive a build failed error (CAEAGLLayer’ is deprecated: first deprecated in iOS 12.0 - OpenGLES is deprecated). I slightly understand the class of CAEAGLayer (CAEAGLLayer | Apple Developer Documentation) and that it has to do with OpenGL. Just wondering if anyone has run into this and if so can you point me in the direction of a fix or help out with what I need to adjust in my publish settings to get this all aligned? I have had several successful builds on other projects lately so I’m afraid it’s related to Mapbox whose SDK doesn’t seem to be newer than 2018…

Any advice greatly appreciated and thanks in advance.

OpenGL depredation should not lead to a build error. Are you sure that that specific warning prevents you from building the app?

Unfortunately it seems so. I tried building out a handful of times with no success. Then, I took out Mapbox and it built with no errors. I migrated to a different methodology which is unfortunate as I really liked the Mapbox approach. It’s not a specific solution to this exact issue with Mapbox but I moved over to using Online Maps V3 in the event that anyone ever runs into something like this.