blog/2024/10/09/Mac安装软件时提示已损坏的解决办法/index.html

592 lines
26 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh">
<head>
<!-- 元数据 -->
<meta charset="utf-8">
<link rel="icon" href="https://2-cdn.ianxia.com/images/avatar/common.png">
<title>Mac安装软件时提示已损坏的解决办法 | Code The World</title>
<meta name="author" content="Bigsk" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="index,follow" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="format-detection" content="telphone=no, email=no" />
<meta name="keywords" content="技术" />
<meta name="description" content="APP损坏主要有4个原因1、没有允许任何来源的应用2、应用程序内容中的一项没有变成unix文件3、这个应用的安全隔离属性未移出4、app本身出错了其中前3个可以解决最后一个只能再换个网站下载 方法一1、打开系统偏好设置找到安全性与隐私打开后找到通用然后点击小锁输入密码2、如果你的系统有“任何来源”这个选项那就点击任何来源3、如果没有那就打开终端4、输入以下代码再按回车输入">
<meta property="og:type" content="article">
<meta property="og:title" content="Mac安装软件时提示已损坏的解决办法">
<meta property="og:url" content="https://blog.ianxia.com/2024/10/09/Mac%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E6%97%B6%E6%8F%90%E7%A4%BA%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/index.html">
<meta property="og:site_name" content="Code The World">
<meta property="og:description" content="APP损坏主要有4个原因1、没有允许任何来源的应用2、应用程序内容中的一项没有变成unix文件3、这个应用的安全隔离属性未移出4、app本身出错了其中前3个可以解决最后一个只能再换个网站下载 方法一1、打开系统偏好设置找到安全性与隐私打开后找到通用然后点击小锁输入密码2、如果你的系统有“任何来源”这个选项那就点击任何来源3、如果没有那就打开终端4、输入以下代码再按回车输入">
<meta property="og:locale">
<meta property="article:published_time" content="2024-10-09T08:29:29.000Z">
<meta property="article:modified_time" content="2024-11-25T06:33:31.643Z">
<meta property="article:author" content="Bigsk">
<meta property="article:tag" content="技术">
<meta name="twitter:card" content="summary">
<!-- 站点验证相关 -->
<!-- 样式表文件 -->
<link rel="stylesheet" id="kratos-css" href="/css/kratosr.min.css" media="all"></script>
<link rel="stylesheet" id="darkmode-css" href="/css/kr-color-dark.min.css" media="(prefers-color-scheme: dark)"></script>
<script src="/js/kr-dark.min.js"></script>
<link rel="stylesheet" id="highlight-css" href="/css/highlight/night-eighties.min.css" media="all"></script>
<link rel="stylesheet" id="fontawe-css" href="/vendors/font-awesome@4.7.0/css/font-awesome.min.css" media="all"></script>
<link rel="stylesheet" id="nprogress-css" href="/vendors/nprogress@0.2.0/nprogress.css" media="all"></script>
<link rel="stylesheet" href="/vendors/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css"></script>
<!-- 不得不预先加载的一些JS文件 -->
<script src="/vendors/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="/vendors/qrcode_js@1.0.0/qrcode.min.js"></script>
<style>
</style>
<meta name="generator" content="Hexo 6.3.0"></head>
<body class="custom-background">
<div id="kratos-wrapper">
<div id="kratos-page">
<div id="kratos-header">
<header id="kratos-desktop-topnav" class="kratos-topnav">
<div class="container">
<div class="nav-header">
<nav id="kratos-menu-wrap">
<ul id="kratos-primary-menu" class="sf-menu">
<li>
<a target="_blank" rel="noopener" href="https://www.ianxia.com">
<i class="fa fa-home"></i>
首页
</a>
</li>
<li>
<a target="_blank" rel="noopener" href="https://demo.ianxia.com">
<i class="fa fa-bug"></i>
DEMO
</a>
</li>
<li>
<a target="_blank" rel="noopener" href="https://adsb.ianxia.com">
<i class="fa fa-plane"></i>
ADS-B
</a>
</li>
<li>
<a target="_blank" rel="noopener" href="https://tools.ianxia.com">
<i class="fa fa-wrench"></i>
小工具
</a>
</li>
<li>
<a href="/">
<i class="fa fa-cubes"></i>
博客
</a>
</li>
<li>
<a href="/links">
<i class="fa fa-link"></i>
友情链接
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
<header id="kratos-mobile-topnav" class="kratos-topnav">
<div class="container">
<div class="color-logo"><a href="/">Code The World</a></div>
<div class="nav-toggle">
<a class="kratos-nav-toggle js-kratos-nav-toggle">
<i></i>
</a>
</div>
</div>
</header>
</div>
<div class="kratos-start kratos-hero-2">
<!-- <div class="kratos-overlay"></div> -->
<div class="kratos-cover kratos-cover-2 text-center">
<div class="desc desc2 animate-box">
<a href="/">
<h2>Code The World</h2> <br />
<span>Codice est quasi poem a.</span>
</a>
</div>
</div>
</div>
<div id="kratos-blog-post">
<div class="container">
<div id="main" class="row">
<section class="col-md-8">
<article itemscope itemtype="https://schema.org/Article">
<link itemprop="mainEntityOfPage" href="https://blog.ianxia.com/2024/10/09/Mac%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E6%97%B6%E6%8F%90%E7%A4%BA%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/">
<div class="kratos-hentry kratos-post-inner clearfix">
<header class="kratos-entry-header">
<h1 class="kratos-entry-title text-center" itemprop="name headline">Mac安装软件时提示已损坏的解决办法</h1>
<ul class="kratos-post-meta text-center">
<li><time datetime="2024-10-09T08:29:29.000Z" itemprop="datePublished"><i class="fa fa-calendar"></i> 2024-10-09</time></li>
<li itemprop="author" itemscope itemtype="https://schema.org/Person">
<i class="fa fa-user"></i> 作者 <span itemprop="name">Bigsk</span>
</li>
<li>
<i class="fa fa-edit"></i>
668
</li>
</ul>
</header>
<div class="kratos-post-content">
<div id="expire-alert" class="alert alert-warning hidden" role="alert">
<div class="icon"><i class="fa fa-warning"></i></div>
<div class="text"><p>本文最后编辑于 <time datetime="1732516411643"></time> 前,其中的内容可能需要更新。</p></div>
</div>
<hr />
<div itemprop="articleBody"><h4 id="APP损坏主要有4个原因"><a href="#APP损坏主要有4个原因" class="headerlink" title="APP损坏主要有4个原因"></a>APP损坏主要有4个原因</h4><p>1、没有允许任何来源的应用<br>2、应用程序内容中的一项没有变成unix文件<br>3、这个应用的安全隔离属性未移出<br>4、app本身出错了<br>其中前3个可以解决最后一个只能再换个网站下载</p>
<h3 id="方法一"><a href="#方法一" class="headerlink" title="方法一"></a>方法一</h3><p>1、打开系统偏好设置找到安全性与隐私打开后找到通用然后点击小锁输入密码<br>2、如果你的系统有“任何来源”这个选项那就点击任何来源<br>3、如果没有那就打开终端<br>4、输入以下代码再按回车输入密码注意你输入的密码不会显示输完密码在安按回车<br><code>sudo spctl --master-disable</code><br>5、这时候再重新打开系统偏好设置就可以看到任何来源了<br>设置完成后,再次打开应用,如果还是损坏,就请参见方法二</p>
<h3 id="方法二"><a href="#方法二" class="headerlink" title="方法二"></a>方法二</h3><p>1、如果已经设置了任何来源仍然无法打开那么我们在这个app文件上点击右键选择“显示包内容”然后依次打开Contents文件夹、MacOS文件夹<br>2、如果图标上没有“exec”四个字就打开终端输入以下代码<br><code>chmod -x</code><br>3、注意“ -x ”的前后都有空格。输入完代码,再把这个未知文件拖进终端,终端里面就会显示这个文件的路径<br>4、然后按回车这个时候你会发现原本的未知文件变成了unix文件<br>这个时候,再次打开应用,就可以正常运行了</p>
<h3 id="方法三"><a href="#方法三" class="headerlink" title="方法三"></a>方法三</h3><p>前面的方法都尝试了,还是打不开,怎么办?在终端中输入这串代码<br><code>xattr -r -d com.apple.quarantine</code><br>把app文件拖动进来最后回车就可以正常运行了</p>
<h3 id="鸣谢"><a href="#鸣谢" class="headerlink" title="鸣谢"></a>鸣谢</h3><h4 id="原文https-zhuanlan-zhihu-com-p-114919138"><a href="#原文https-zhuanlan-zhihu-com-p-114919138" class="headerlink" title="原文https://zhuanlan.zhihu.com/p/114919138"></a>原文:<a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/114919138">https://zhuanlan.zhihu.com/p/114919138</a></h4></div>
</div>
<div class="kratos-copyright text-center clearfix">
<h5 itemprop="copyrightNotice">本作品采用 <a rel="license nofollow" target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/">知识共享署名-相同方式共享 4.0 国际许可协议</a> 进行许可</h5>
</div>
<footer class="kratos-entry-footer clearfix">
<div class="post-like-donate text-center clearfix" id="post-like-donate">
<a class="share" href="javascript:;"><i class="fa fa-share-alt"></i> 分享</a>
<div class="share-wrap" style="display: none;">
<div class="share-group">
<a href="javascript:;" class="share-plain qq" onclick="share('qq');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-qq"></i>
</div>
</a>
<a href="javascript:;" class="share-plain qzone" onclick="share('qzone');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-star"></i>
</div>
</a>
<a href="javascript:;" class="share-plain weixin pop style-plain" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-weixin"></i>
</div>
<div class="share-int">
<div class="qrcode" id="wechat-qr"></div>
<p>打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮</p>
</div>
</a>
<a href="javascript:;" class="share-plain weibo" onclick="share('weibo');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-weibo"></i>
</div>
</a>
<a href="javascript:;" class="share-plain facebook style-plain" onclick="share('facebook');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-facebook"></i>
</div>
</a>
<a href="javascript:;" class="share-plain twitter style-plain" onclick="share('twitter');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-twitter"></i>
</div>
</a>
</div>
<script type="text/javascript">
$(()=>{
new QRCode("wechat-qr", {
text: "https://blog.ianxia.com/2024/10/09/Mac%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E6%97%B6%E6%8F%90%E7%A4%BA%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/",
width: 150,
height: 150,
correctLevel : QRCode.CorrectLevel.H
});
});
function share(dest) {
const qqBase = "https://connect.qq.com/widget/shareqq/index.html?";
const weiboBase = "https://service.weibo.com/share/share.php?";
const qzoneBase = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?";
const facebookBase = "https://www.facebook.com/sharer/sharer.php?";
const twitterBase = "https://twitter.com/intent/tweet?";
const hostUrl = "https://blog.ianxia.com/2024/10/09/Mac%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E6%97%B6%E6%8F%90%E7%A4%BA%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/";
const title = "「Mac安装软件时提示已损坏的解决办法」";
const excerpt = `APP损坏主要有4个原因1、没有允许任何来源的应用2、应用程序内容中的一项没有变成unix文件3、这个应用的安全隔离属性未移出4、app本身出错了其中前3个可以解决最后一个只能再换个网站下载
方法一1、打开系统偏好设置找到...`;
let _URL;
switch (dest) {
case "qq" : _URL = qqBase+"url="+hostUrl+"&title="+title+"&desc=&summary="+excerpt+"&site=cxpy"; break;
case "weibo" : _URL = weiboBase+"url="+hostUrl+"&title="+title+excerpt; break;
case "qzone" : _URL = qzoneBase+"url="+hostUrl+"&title="+title+"&desc=&summary="+excerpt+"&site=cxpy"; break;
case "facebook" : _URL = facebookBase+"u="+hostUrl; break;
case "twitter" : _URL = twitterBase+"text="+title+excerpt+"&url="+hostUrl; break;
}
window.open(_URL);
};
</script>
</div>
</div>
<div class="footer-tag clearfix">
<div class="pull-left">
<i class="fa fa-tags"></i>
<a class="tag-none-link" href="/tags/%E6%8A%80%E6%9C%AF/" rel="tag">技术</a>
</div>
<div class="pull-date">
<time datetime="2024-11-25T06:33:31.643Z" itemprop="dateModified">最后编辑2024-11-25</time>
</div>
</div>
</footer>
</div>
<nav class="navigation post-navigation clearfix" role="navigation">
<div class="nav-previous clearfix">
<a title=" 摄影作品Field" href="/2023/07/18/摄影作品-Field/">&lt; 上一篇</a>
</div>
<div class="nav-next clearfix">
<a title=" Python证书链出问题导致的模块全部报错" href="/2024/10/30/Python证书链出问题导致的模块全部报错/">下一篇 &gt;</a>
</div>
</nav>
</article>
</section>
<section id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm">
<!-- 文章和页面根据splitter来分割没有的话就从头开始设置为sticky -->
<aside id="krw-about" class="widget widget-kratos-about clearfix">
<div class="photo-background"></div>
<div class="photo-wrapper clearfix">
<div class="photo-wrapper-tip text-center">
<img class="about-photo" src="https://2-cdn.ianxia.com/images/avatar/common.png" loading="lazy" decoding="auto" />
</div>
</div>
<div class="textwidget">
<p class="text-center">Codice est quasi poem a.</p>
</div>
<div class="site-meta">
<a class="meta-item" href="/archives/">
<span class="title">
文章
</span>
<span class="count">
25
</span>
</a>
<a class="meta-item" href="/categories/">
<span class="title">
分类
</span>
<span class="count">
3
</span>
</a>
<a class="meta-item" href="/tags/">
<span class="title">
标签
</span>
<span class="count">
3
</span>
</a>
</div>
</aside>
<div class="sticky-area">
<aside id="krw-categories" class="widget widget-kratos-categories clearfix">
<h4 class="widget-title"><i class="fa fa-folder"></i>分类目录</h4>
<ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%8A%80%E6%9C%AF/">技术</a><span class="category-list-count">16</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%91%84%E5%BD%B1/">摄影</a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%B5%84%E6%BA%90/">资源</a><span class="category-list-count">2</span></li></ul>
</aside>
<aside id="krw-tags" class="widget widget-kratos-tags clearfix">
<h4 class="widget-title"><i class="fa fa-tags"></i>标签聚合</h4>
<div class="tag-clouds">
<a href="/tags/%E6%8A%80%E6%9C%AF/" style="font-size: 0.8em;">技术</a> <a href="/tags/%E6%91%84%E5%BD%B1/" style="font-size: 0.7em;">摄影</a> <a href="/tags/%E8%B5%84%E6%BA%90/" style="font-size: 0.6em;">资源</a>
</div>
</aside>
<aside id="krw-posts" class="widget widget-kratos-posts">
<h4 class="widget-title"><i class="fa fa-file"></i>最新文章</h4>
<div class="tab-content">
<ul class="list-group">
<a class="list-group-item" href="/2024/11/25/%E5%88%A9%E7%94%A8Linux%E5%B0%8F%E4%B8%BB%E6%9C%BA%E5%92%8CSDR%E6%90%AD%E5%BB%BAAPRS-iGate/"><i class="fa fa-book"></i> 利用Linux小主机和SDR搭建APRS iGate</a>
<a class="list-group-item" href="/2024/10/30/Python%E8%AF%81%E4%B9%A6%E9%93%BE%E5%87%BA%E9%97%AE%E9%A2%98%E5%AF%BC%E8%87%B4%E7%9A%84%E6%A8%A1%E5%9D%97%E5%85%A8%E9%83%A8%E6%8A%A5%E9%94%99/"><i class="fa fa-book"></i> Python证书链出问题导致的模块全部报错</a>
<a class="list-group-item" href="/2024/10/09/Mac%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E6%97%B6%E6%8F%90%E7%A4%BA%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/"><i class="fa fa-book"></i> Mac安装软件时提示已损坏的解决办法</a>
<a class="list-group-item" href="/2023/07/18/%E6%91%84%E5%BD%B1%E4%BD%9C%E5%93%81-Field/"><i class="fa fa-book"></i> 摄影作品Field</a>
<a class="list-group-item" href="/2023/02/25/Python-%E4%B8%AD%E5%85%B3%E4%BA%8E-round-%E5%87%BD%E6%95%B0%E7%9A%84%E5%B0%8F%E5%9D%91/"><i class="fa fa-book"></i> Python 中关于 round 函数的小坑</a>
</ul>
</div>
</aside>
</div>
</section>
</div>
</div>
</div>
<footer>
<div id="footer" >
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3 footer-list text-center">
<ul class="kratos-social-icons">
<!-- Keep for compatibility -->
<!-- New links -->
</ul>
<ul class="kratos-copyright">
<div>
<li>&copy; 2024 Bigsk 版权所有.</li><br>
<li>本站已运行<span id="span_dt">Loading...</span></li><br>
<li>本站支持 IPv6 访问</li><br>
</div>
<!--
<div>
</div>
<div>
</div>
-->
<div><br><br></div>
</ul>
</div>
</div>
</div>
<div class="kr-tool text-center">
<div class="tool">
<div class="box search-box">
<a href="/search/">
<span class="fa fa-search"></span>
</a>
</div>
<div class="box theme-box" id="darkmode-switch">
<span class="fa fa-adjust"></span>
</div>
</div>
<div class="box gotop-box">
<span class="fa fa-chevron-up"></span>
</div>
</div>
</div>
</footer>
</div>
</div>
<script defer src="/vendors/bootstrap@3.3.4/dist/js/bootstrap.min.js"></script>
<script defer src="/vendors/nprogress@0.2.0/nprogress.js"></script>
<script>
if (!window.kr) {
window.kr = {};
}
window.kr.notMobile = (!(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)));
window.kr.siteRoot = "/";
</script>
<script async src="/js/candy.min.js"></script>
<script defer src="/vendors/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
<script defer src="/js/kratosr.min.js"></script>
<script defer src="/js/pjax.min.js"></script>
<!-- Extra support for third-party plguins -->
</body>
</html>