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:
- MacOS: Open up System Preferences
- MacOS: Go to Security & Privacy (keep this one open, you'll need it for the entire process)
- Unity: Go and build your project. When the error appears click "Cancel"
- 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.
- The error will appear again, but this time will ask you to "Open" it. Click "Open"
- 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.
- Build again your project.
- 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