Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macOS cannot verify the developer of "clang"

I updated to macos-catalina and I am trying to crosscompile c++ code for android using android-ndk-r18b

macOS cannot verify the developer of “clang". Are you sure you want to open it?

It asks me for all different executables/compilers (e.g arm-linux-androideabi-ranlib). I got around this by got around it by going to Security & Privacy and allowing all executables that show up there. Is there a more generic way to authorize everything within the android ndk?

like image 722
Julian Avatar asked Oct 11 '19 19:10

Julian


2 Answers

  1. Open `System Preferences/Security & Privacy/Developer Tools.
  2. Allow Terminal app to run software locally that does not meet system's security policy

enter image description here

like image 60
hiepav Avatar answered Nov 15 '22 12:11

hiepav


This was essentially answered in the comments by Dan Albert, but to add an actual answer, as per android ndk issue 1060:

For macOS, the SDK manager is the most reliable method of acquiring the NDK for most use cases and should be preferred until something else changes. That is not viable for all users, but if it is an option for you that's your best option.

In other words, if you install/reinstall an NDK using SDK manager, you should end up with a version that gatekeeper will be happy about, e.g.:

android/Sdk/tools/bin/sdkmanager --install "ndk;18.1.5063045"

like image 31
JosephH Avatar answered Nov 15 '22 13:11

JosephH