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

查看:41
本文介绍了由于新的安全性,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.

真的没有代码.我只有(并且已经有很长时间)Android Studio NDK 参考通过配置指向旧 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. Unity:去构建你的项目.出现错误时点击取消"
  4. MacOS:在安全和隐私窗口 - 在clang"错误附近点击允许" - 以便 MacOS 系统识别并使用该应用程序.
  5. 错误会再次出现,但这次会要求您打开"它.点击打开"
  6. 由于各种依赖关系,构建会多次失败,但会因不同的文件而失败,您需要像前面的步骤一样允许这些文件.
  7. 重新构建您的项目.
  8. 如果失败,请再次执行这些步骤,直到不再失败.每次无法识别文件时遇到的每个错误都会不同

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

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