Cannot use old NDK (android-ndk-r17c) after Catalina upgrade due to new security

There is a better way to work it around now.

You could got to Security & Privacy, open Developer Tools and add your terminal app to the list of the tools. The same could be done for your IDE.


I just found the solution.

It's a tedious process but:

  1. MacOS: Open up System Preferences
  2. MacOS: Go to Security & Privacy (keep this one open, you'll need it for the entire process)
  3. Unity: Go and build your project. When the error appears click "Cancel"
  4. MacOS: In the Security & Privacy window - go and click "Allow" near the "clang" error - so that the MacOS system will recognize the app and utilise it.
  5. The error will appear again, but this time will ask you to "Open" it. Click "Open"
  6. The build will fail several times due to various dependencies, but it will fail with different files that you will need to allow as in the previous steps.
  7. Build again your project.
  8. If it fails, do the steps again, until it stops failing. Every single error you get with the file not being recognized will be different each time

To allow apps downloaded from Anywhere on MacOs Catalana do this:

sudo spctl --master-disable