如何禁用网守 macOS? App cannot be opened because it is from an unidentified developer.

这样你就可以在上面安装一些应用程序 Mac, 你需要知道如何停用 Gatekeeper pe macOS. 否则,当您要安装某些应用程序时,消息“App cannot be opened because it is from an unidentified developer.

网守阻止应用程序 macOS
网守阻止应用程序 macOS

在您了解如何禁用 Gatekeeper 之前 macOS, 了解此功能的含义及其帮助非常重要。

是什么 Gatekeeper pe macOS?

Gatekeeper安全功能 集成到操作系统中 macOS, 从版本开始 OS X Mountain Lion (10.8),这有助于保护用户 针对恶意软件应用程序 和其他恶意程序。 基本上,此功能控制允许安装和打开哪些应用程序 Mac.

默认情况下, Gatekeeper 配置为仅允许安装和打开从 App Store 或来自 确定的开发商 并检查 Apple.

如果您尝试安装来自未被识别的开发人员的应用程序 Apple,应用程序安装的运行将停止并显示消息“App cannot be opened because it is from an unidentified developer.=

Gatekeeper 它不能 100% 保护您免受恶意软件应用程序的侵害,但对于技术水平不高以及可以从 Internet 下载可能对操作系统造成危险的应用程序的用户来说,它有很大帮助。 Gatekeeper 防止您意外安装可能影响安全的应用程序 Mac.

如何禁用网守 macOS?

大多数时候我不建议禁用操作系统的安全功能,但也有一些情况,如果您需要从 App Store 外部安装应用程序,或者由未经验证的开发人员创建 Apple,禁用 Gatekeeper 是必须的。

在我们的示例中,我们将采用名为“App.dmg”这是由“unidentified developer” 和哪个 Gatekeeper 阻止它。

当我们尝试打开文件来安装应用程序时“App.dmg” 我们得到消息: “App.dmg” cannot be opened because it is from an unidentified developer. 随着添加 macOS 无法检查此应用程序是否包含恶意软件。

如果在您尝试安装应用程序时出现此消息,您有两种方法可供选择。

方法1: 打开被阻止的应用程序 Gatekeeper

您可以从以下位置打开被阻止的应用程序: System Settings → Privacy & Security.

在“Security” 你会发现可以打开被阻止的应用程序的选项 Gatekeeper。 “Open Anyway“。

如何禁用网守 macOS
macOS 网守隐私和安全

By opening this app, you will be overriding system security which can expose your computer and personal information to malware that may harm your Mac or compromise your privacy.“ - 点击 ”Open“。

应用程序 ”App.dmg” 会打开,但是如果它有多个安装过程,它可能仍然会被 Gatekeeper 阻止。

方法2: 禁用 Gatekeeper 并允许从多个来源安装

能够从任何来源安装应用程序的最安全方法,不仅是来自 App Store 和经过验证的开发人员,是禁用 Gatekeeper. 因此,您将能够自己选择是否要允许应用程序安装在 macOS, 以及其他来源。 “Anywhere“。

打开 Terminal pe macOS 并执行命令行(输入要执行的行的用户密码):

sudo spctl --master-disable

你回到“Privacy & Security“并激活新选项”Anywhere“。

Install 来自任何地方的应用程序 macOS
Install 来自任何地方的应用程序 macOS

现在您可以安装任何应用程序 macOS,即使它不是来自 App Store 或来自由以下人员识别和验证的开发者 Apple.

您可以通过命令行当场激活 Gatekeeper 保护:

sudo spctl --master-enable

在某些情况下仍然无法安装应用程序。 “App is damaged and can’t be opened“。

在这种情况下,您必须非常小心该应用程序的安装不会损害操作系统的完整性。 如果您在出现错误消息时仍想安装应用程序:“App is damaged and can’t be opened",您可以删除该应用程序的扩展属性。 包括那些出于安全原因可以阻止应用程序运行的属性。

运行 Terminal,以下命令行:

xattr -cr /full/path/Application.app

当然,在上面的命令中更改应用程序的路径和名称。 (类型:拖动 drag&drop 应用在 Terminal,在你写完命令行之后)。

作为科技爱好者,我从2006年开始在StealthSettings.com上愉快地撰写文章。我在操作系统方面有丰富的经验,包括macOS、Windows和Linux,还熟悉编程语言和博客平台(WordPress),以及在线商店平台(WooCommerce、Magento、PrestaShop)。

如何以 » iHowTo » iHowTo- macOS » 如何禁用网守 macOS? App cannot be opened because it is from an unidentified developer.
发表评论