由于新的安全性,在Catalina升级后无法使用旧的NDK(android-ndk-r17c) [英] Cannot use old NDK (android-ndk-r17c) after Catalina upgrade due to new security

查看:335
本文介绍了由于新的安全性,在Catalina升级后无法使用旧的NDK(android-ndk-r17c)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到macOS Catalina后,我的项目将不再构建.这是由于Catalina认为'android-ndk-r17c'中的二进制文件不是来自受信任的开发人员.

After upgrading to macOS Catalina, my project won't build anymore. This is due to Catalina believing the binaries in 'android-ndk-r17c' to not be from a trusted developer.

您收到以下消息: "ld"无法打开,因为无法验证显影剂." "macOS无法验证此应用程序没有恶意软件"

You get messages such as: ""ld" cannot be opened because the developer cannot be verified." "macOS cannot verify that this app is free from malware"

由于本机openCV库SDK和较新的NDK出现问题,我必须使用旧的NDK.他们正在努力,但是较新的SDK对我来说还不够稳定.

I have to use the old NDK due to problems with native openCV library SDK and newer NDKs. They are working on it, but the newer SDK is not stable enough for me yet.

我可以通过转到安全窗格并单击安全警报上的始终允许"来解决"clang"和"clang ++"无法工作的问题.但是,在尝试使用"Id"进行此操作时,我可以通过单击仍然允许"来跳过第一个警告,但它似乎随后被调用,而在随后的调用中,我没有允许它打开的选项.

I was able to get around "clang" and "clang++" not being able to work by going to the security pane and clicking "Allow Anyway" on the security alerts. However, when trying this with "Id", I can get past the first warning by clicking "Allow Anyway" but it seems to be called subsequently and on the subsequent call I do not have the option to allow it to open.

实际上没有代码.我只是(并且已经有很长时间了)通过配置指向旧NDK的Android Studio NDK参考.

There is no code really. I just have (and have had for a long time) Android Studio NDK reference pointing to the old NDK via the config.

在NDK的IDE中,它无法加载"Id":

In IDE from NDK, it fails to load "Id":

" ld无法打开,因为无法验证开发人员." "macOS无法验证此应用程序没有恶意软件"

""ld" cannot be opened because the developer cannot be verified." "macOS cannot verify that this app is free from malware"

推荐答案

我刚刚找到了解决方案.

I just found the solution.

这是一个乏味的过程,但是:

It's a tedious process but:

  1. MacOS:打开系统偏好设置
  2. MacOS:转到安全性和隐私权(保持开放状态,整个过程中都将需要它)
  3. 团结:去构建您的项目.当错误出现时,单击取消"
  4. MacOS:在安全性和隐私窗口-转到"c"错误旁边,然后单击允许",以便MacOS系统可以识别该应用并加以利用.
  5. 该错误将再次出现,但是这次将要求您打开"它.点击打开"
  6. 由于各种依赖关系,构建将多次失败,但是如前面的步骤所述,它将因需要允许的其他文件而失败.
  7. 再次构建您的项目.
  8. 如果失败,请再次执行步骤,直到停止失败.您由于无法识别文件而遇到的每个错误每次都会有所不同

这篇关于由于新的安全性,在Catalina升级后无法使用旧的NDK(android-ndk-r17c)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆