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

news/2025/3/19 23:57:18/

问题

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


http://www.ppmy.cn/news/324774.html

相关文章

3GPP R17,到底在研究些什么?

本文来源:网优雇佣军 3GPP R16版本终于冻结了。 在R16标准版本中,NR功能被进一步扩展到新的垂直行业中,比如交通运输、工业物联网、制造业、汽车(V2X)行业等。 与此同时,5G NR还进一步增强了容量和效率&…

android-ndk-r17c,使用android-ndk-r17c构建ffmpeg 4.2.1时遇到的问题

1.报fatal error: asm/types.h: No such file or directory /sysroot/usr/include/linux/types.h:21:23: fatal error: asm/types.h: No such file or directory #include 解决方案:在--extra-cflags添加头文件目录 --extra-cflags"-I$NDK/sysroot/usr/includ…

3GPP R17 NR测量GAP增强

3GPP R17 NR测量GAP增强包含三个部分,(1) Pre-configured MG pattern(s), (2) Multiple concurrent and independent MG patterns, (3) Network controlled small gap。本文重点介绍(1)和(3)。 Pre-configured MG pattern(s) 基站配置Pre-configured MG之后&#x…

3GPP R17空闲态省电特性

Paging Early Indication 为了进一步降低空闲态UE监听PDCCH的功耗,R17提出Paging Early Indication(PEI)方案。方案的主要思想是在PO(Paging Occasion)之前插入一个PEI-O(PEI Occasion),UE在解调到PEI信息之后,再确定是否需要解调PO信息。其中…

5G 标准 — R17

目录 文章目录 目录R17 冻结计划NR 定位增强NR-LightNR V2X 增强XR 评估NB-IoT/eMTC 与非地面网络集成UE 处于 RRC INACTIVE 态下小数据包传输 R17 冻结计划 2021 年 9 月 24 日消息,3GPP 技术规范组(TSG)刚举办的电子会议 #93-e 预计在 202…

NR R17 标准梳理,再战5G,未来可期(转载)

一:概述 R15 R15 2019年冻结,侧重于eMBB增强移动宽带,更快的网络传输速率, 主要面向2C消费者终端市场; 5G第一个版本,定义了3大应用场景,增强型移动宽带eMBB,超可靠低时延通信URL…

3GPP 5G R17标准冻结,RedCap作为重要特性值得关注!

在本月的3GPP RAN会议中,5G Release 17(简称:R17)标准宣布冻结。RedCap作为R17标准的重要特性之一,R17标准的冻结意味着5G针对中高速物联的RedCap新技术标准已就绪,未来将进一步拓展5G万物互联的智能新场景…

硅谷甄选 Blog_02-项目集成

集成 element-plus 硅谷甄选运营平台,UI 组件库采用的 element-plus,因此需要集成 element-plus 插件 官网地址:https://element-plus.gitee.io/zh-CN/ 安装 pnpm install element-plus用法 完整引入 // main.ts import { createApp } …