Android build with IL2CPP fails on OSX Catalina

This is a known issue which affects all Unity versions.

The issue: Building Android project with the IL2CPP backend fails after the OSX Catalina update.

The reason: OSX Catalina does not want to run unsigned binary files as they are considered unsafe. Unity uses NDK versions up to r19 and all of them are not signed. This causes Android builds to fail.

The workaround: This issue is only reproducible on the OSX Catalina, so not upgrading to this OSX version or using Windows is a possible workaround. Alternatively if you have already upgraded to Catalina, each NDK tool necessary for Android building can be allowed to run in the OSX security and privacy settings. See this post or this thread on how to do that. Just note that there are multiple tools invoked while building Android and all of them must be allowed to run, so you will have to start build process multiple times for this.

1 Like

When can we expect this to be fixed?

Only Google can sign their own binaries. At this time we do not have an ETA if/when they will sign older NDKs. Starting with later NDK’s we have confirmation they will be signed going forward.

2 Likes

If you are willing to use your mac without gatekeeper until that’s fixed, there is an easier workaround.

The workaround makes it possible to download and use apps downloaded from anywhere on macOS Catalina without a check. Restores old allow apps downloaded from anywhere setting.

I’m currently using this with 2019.2.10f1 and building to Android without any issues on that part…

I’m waiting too and I’d like to find out

Using 2018.4 and this constantly happened, everything I need to re-download ndk-r16b so make it work…

Any updates regarding this?
Pinterest Story Downloader

Updates about this?

When you get an error where Android build with IL2CPP fails on OSX Catalina, there are several steps you can take to fix the problem: Check if your version of Unity is compatible with macOS Catalina. If not, you may need to update Unity to a newer version. Check if your JDK (Java Development Kit) version is compatible with Unity and macOS Catalina versions. If it’s not compatible, you may need to update your JDK to a newer version, if you still can’t fix the error, you can also try to get some tools on android apps to fix it. handling the errors you guys have, I tried it and it worked