I have an app written in Objective-C. I tried to import it to Mac Catalyst and when i build it for "My Mac" i get this error:
OpenGLES is deprecated and is not available when building for Mac Catalyst.
How can i fix it?
Best regards.
There are a few possibilities here:
- Check in your project's build settings to see if OpenGLES is specified anywhere.
- Look in the Build Phases to see if it is in the Link Binaries build phase.
- Check with the vendors of any third party libraries you use. None of them should have OpenGLES, since Mac Catalyst is a new platform and the vendor should get this error when building their libraries too, but I mention it just in case.
If nothing else turns up, you can always use the grep command line tool as a course way of trying to find any reference to OpenGLES:
% grep -R -B2 -A2 OpenGL <YourProjectFolderPath>