问题

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.

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"

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.

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.

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.

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

"“ld” cannot be opened because the developer cannot be verified."

"macOS cannot verify that this app is free from malware"

回答1:

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

回答2:

To allow apps downloaded from Anywhere on MacOs Catalana do this:

sudo spctl --master-disable

回答3:

I'd like to add to Mudassar Ashraf's answer.

If you don't see «Allow» option after clicking «Cancel», switch «Allow apps downloaded from» in Security window to «App Store and identified developers». This somehow will make «Allow» button appear. Then switch it back to «Anywhere». Repeat if necessary.

回答4:

If by some reason in your Security & Privacy window button allow doesnt appear then just move your ndk to different directory and try whole process again.

来源:https://stackoverflow.com/questions/58390545/cannot-use-old-ndk-android-ndk-r17c-after-catalina-upgrade-due-to-new-security

android-ndk-r17c,Cannot use old NDK (android-ndk-r17c) after Catalina upgrade due to new security相关推荐

  1. NDK版本、获取以及和ANDROID对应关系

    一.现有NDK版本 Android NDK,最新稳定版本 (r19c) Android NDK,修订版 r18b(2018 年 9 月) Android NDK,修订版 r17c(2018 年 6 月 ...

  2. 【Android开发】:在任意目录执行NDK编译

    2019独角兽企业重金招聘Python工程师标准>>> 文以简单的例子讲述如何在任意目录把自己写的C代码使用NDK提供的交叉编译该工具来编译成Android可使用的静态库/动态库. ...

  3. Android开发实践:在任意目录执行NDK编译

    本文暂时不讲述如何用NDK编译第三方开源代码库,而是先以简单的例子讲述如何在任意目录把自己写的C代码编译成Android可使用的静态库/动态库. 1. 准备环境 首先,你得安装了Android的NDK ...

  4. NDK交叉编译及so库导入Android项目

    前言 记录 NDK交叉编译及so库导入Android项目 的简单步骤,以备后续用到时查看. 环境 在Linux和Mac环境下,分别编译输出so库. Red Hat Enterprise Linux 8 ...

  5. android ndk mac安装成功,Mac下Android Studio NDK 环境搭建并运行

    本文包括两部分. 一,NDK环境配置 二,NDK项目运行. 2,下载完成之后,在cmd命令中解压文件. (1) cd  命令进入下载后ndk存放的目录  cd /Users/talon/Desktop ...

  6. 【Android 逆向】Android 进程注入工具开发 ( Visual Studio 开发 Android NDK 应用 | Visual Studio 中 SDK 和 NDK 安装位置 )

    文章目录 一.Visual Studio 中安装 " 使用 C++ 的移动开发 " 开发库 二.Visual Studio 中安装的 Android SDK 和 NDK 位置 三. ...

  7. 【Android 逆向】代码调试器开发 ( 使用 NDK 中的 ndk-build + Android.mk 编译 Android 平台的代码调试器可执行应用 )

    文章目录 一.Android 平台代码调试器代码 二.Android.mk 构建脚本内容 三.Application.mk 构建脚本内容 四.正式编译 五.博客资源 一.Android 平台代码调试器 ...

  8. 【Android NDK 开发】Kotlin 语言中使用 NDK ( 创建支持 Kotlin 的 NDK 项目 | Kotlin 语言中使用 NDK 要点 | 代码示例 )

    文章目录 一.创建支持 Kotlin 的 NDK 项目 二.Kotlin 语言中使用 NDK 要点 1.加载动态库 2.声明 ndk 方法 3.Project 下的 build.gradle 配置 4 ...

  9. [原]详解如何将cocos2dx项目编译到Android平台上的(方式一:Cywin+NDK)

    链接地址:http://m.blog.csdn.net/blog/yhc13429826359/29357815 2014-6-8阅读578 评论0 前言:cocos2dx作为一个开源的移动2D游戏框 ...

最新文章

  1. 【Paper】2015_Active fault-tolerant control system design with trajectory re-planning against actuator
  2. php中如何上传非表单类数据,PHP Post获取不到非表单数据的问题解决办法
  3. poj3076(16*16数独)
  4. 《高性能JavaScript》第四章 算法和流程控制
  5. Debug经验总结:优化、程序员和概率
  6. JS 数字左补零函数
  7. 怎么在idea中找实现类
  8. java 构建者模式_Java方法中的参数太多,第3部分:构建器模式
  9. 工作88:vue实现当前页面刷新
  10. 上周回顾:艾妮闹春 Sun/HP高层人士震荡
  11. 详解Linux环境软RAID 5建立过程
  12. 硬件基础知识---(4)电阻的核心参数
  13. python matlabplot写字_Matlab中plot基本用法的具体使用
  14. 接口 同花顺_Fiddler模拟接口数据(mock)
  15. 路由器启用SNMP服务
  16. 【扩频通信】基于matlab CDMA直接序列扩频系统仿真【含Matlab源码 1528期】
  17. 【转自知乎】送给前端的你,推荐几篇前端汇总文章
  18. PHP的威胁函数与PHP代码审计
  19. (linux)idr(integer ID management)机制
  20. 计算机快捷键如何移动到桌面,如何设置显示桌面快捷键 设置显示桌面快捷键方法【图文】...

热门文章

  1. elasticsearch联表查询2
  2. Spring中的 @Lazy注解
  3. mac 安装ll命令
  4. 实战|利用Selenium批量下载100首网易云热歌榜音乐
  5. symbian s60 字符串操作
  6. selenium+Java使用JS处理隐藏元素
  7. cloudman博客
  8. 从零开始,手把手带你搭建MySQL高可用集群
  9. 沐歌保健院线上预约按摩系统的设计与实现(论文+源码)_kaic
  10. 用php实现计算两人名字之间的缘分