{"id":895,"date":"2019-11-29T09:46:29","date_gmt":"2019-11-29T01:46:29","guid":{"rendered":"http:\/\/www.shuran.cn\/?p=895"},"modified":"2020-01-02T12:55:41","modified_gmt":"2020-01-02T04:55:41","slug":"app-%e5%9c%a8macos-catalina%e4%b8%8b%e6%8f%90%e7%a4%ba%e5%b7%b2%e6%8d%9f%e5%9d%8f%e6%97%a0%e6%b3%95%e6%89%93%e5%bc%80%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.shuran.cn\/?p=895","title":{"rendered":"App \u5728macOS Catalina\u4e0b\u63d0\u793a\u5df2\u635f\u574f\u65e0\u6cd5\u6253\u5f00\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<h3>\u65b9\u6cd5\u4e00\uff1a\u6388\u6743\u5355\u4e2a\u5e94\u7528<\/h3>\n<p>1\u3001\u6253\u5f00\u7ec8\u7aef\uff1b<br \/>\n2\u3001\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u56de\u8f66\uff1b<br \/>\nsudo xattr -d com.apple.quarantine \/Applications\/xxxx.app<br \/>\n\u6ce8\u610f\uff1a\/Applications\/xxxx.app \u6362\u6210\u4f60\u7684App\u8def\u5f84<br \/>\n3\u3001\u91cd\u542fApp\u5373\u53ef\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u65b9\u6cd5\u4e8c \uff1a\u5173\u95edSIP\u7cfb\u7edf\u5b8c\u6574\u6027\u4fdd\u62a4<\/h3>\n<p>1. \u67e5\u770bSIP\u72b6\u6001<\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165csrutil status\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u662fenabled\u8fd8\u662fdisabled\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>2. \u5173\u95edSIP<\/p>\n<p>\u2460\u91cd\u542fMAC\uff0c\u6309\u4f4fcmd+R\u76f4\u5230\u5c4f\u5e55\u4e0a\u51fa\u73b0\u82f9\u679c\u7684\u6807\u5fd7\u548c\u8fdb\u5ea6\u6761\uff0c\u8fdb\u5165Recovery\u6a21\u5f0f\uff1b<\/p>\n<p>\u2461\u5728\u5c4f\u5e55\u6700\u4e0a\u65b9\u7684\u5de5\u5177\u680f\u627e\u5230\u5b9e\u7528\u5de5\u5177\uff08\u5de6\u6570\u7b2c3\u4e2a\uff09\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\uff1acsrutil disable\uff1b<\/p>\n<p>\u2462\u5173\u6389\u7ec8\u7aef\uff0c\u91cd\u542fmac\uff1b<\/p>\n<p>\u2463\u91cd\u542f\u4ee5\u540e\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u67e5\u770b\u72b6\u6001\u786e\u8ba4\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>3. \u5f00\u542fSIP<\/p>\n<p>\u4e0e\u5173\u95ed\u7684\u6b65\u9aa4\u7c7b\u4f3c\uff0c\u53ea\u662f\u5728\u2461\u4e2d\u8f93\u5165csrutil enable\u5373\u53ef\u3002<\/p>\n<p>\u4ee5\u4e0a\u90fd\u505a\u4e86\uff0c\u8fd8\u4e0d\u884c\uff0c\u5c1d\u8bd5<\/p>\n<h4>\u6b65\u9aa4\u4e00\uff1a<\/h4>\n<p>\u5b89\u88c5xcode\uff0c\u8fd9\u4e2a\u5728\u5546\u5e97\u91cc\u9762\u6709\uff0c\u4e0d\u60f3\u5b89\u88c5\u7684\uff0c\u6309\u6b65\u9aa4\u4e8c\u6765\u3002<\/p>\n<h4>\u6b65\u9aa4\u4e8c\uff1a<\/h4>\n<p>\u5b89\u88c5Command Line Tool \u5de5\u5177<\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p>xcode-select --install<strong>\u00a0\uff08install\u524d\u9762\u4e3a\u4e24\u4e2a\u77ed\u6a2a\u7ebf\uff09<\/strong><\/p>\n<h4>\u6b65\u9aa4\u4e09\uff1a\u7ed9\u7a0b\u5e8f\u7b7e\u540d<\/h4>\n<p>\u7ec8\u7aef\u7ee7\u7eed\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p>codesign\u00a0--force\u00a0--deep\u00a0--sign\u00a0-\u00a0<strong>\uff08force\u3001deep\u3001sign\u524d\u9762\u4e3a\u4e24\u4e2a\u77ed\u6a2a\u7ebf\uff09<\/strong><\/p>\n<p>\u7136\u540e\u62d6\u5165\u9700\u8981\u7b7e\u540d\u7684\u8f6f\u4ef6\uff0c\u6700\u540e\u7c7b\u4f3c\u4e8e\u8fd9\u6837<\/p>\n<p>codesign\u00a0--force\u00a0--deep\u00a0--sign\u00a0-\u00a0\/Applications\/name.app\u00a0<strong>\uff08\/Applications\u524d\u9762\u6709\u4e00\u4e2a\u7a7a\u683c\uff09<\/strong><\/p>\n<p>\u56de\u8f66\u641e\u5b9a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u6cd5\u4e00\uff1a\u6388\u6743\u5355\u4e2a\u5e94\u7528 1\u3001\u6253\u5f00\u7ec8\u7aef\uff1b 2\u3001\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u56de\u8f66\uff1b sudo xattr -d com.apple\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.shuran.cn\/?p=895\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-895","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=895"}],"version-history":[{"count":3,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/895\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=\/wp\/v2\/posts\/895\/revisions\/927"}],"wp:attachment":[{"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuran.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}