Reputation: 989
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?
Upvotes: 6
Views: 3323
Reputation: 1369
Download and install the Mac App Bundle version of the NDK available since r21 from this page.
Upvotes: 0
Reputation: 661
The best way is to update the ndk to R21. if your Macos version is catalina.
"No Mac NDK before NDK r21 was signed or notarized."
Upvotes: 0
Reputation: 588
Upvotes: 7
Reputation: 37505
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"
Upvotes: 1