PageSourceSearch

https://www.hestudio.net/assets/get-macos-beta-command.html-x9nJFStj.js

js hestudio.net collected 2026-09-24 10:36:25 UTC 11,904 bytes, 8 lines download raw bytes

1import{_ as a,c as t,f as o,o as s}from"./app-D7CCjthX.js";const n={};function l(r,e){return s(),t("div",null,[...e[0]||(e[0]=[o(`<p>在 macOS 新版本发布之后,很多开发者和极客想要体验新系统特性,但是又不想在自己的主力 Mac 更新 beta 版本(因为不太稳定),只能尝试在虚拟机上安装。但是在上手安装虚拟机时,就会发现以下的几个深坑:</p><ul><li>macOS 正式版不能直接安装更新的测试版的虚拟机,需要安装测试版Xcode或者Mobile Device Support.<sup class="footnote-ref"><a href="#footnote1">[1]</a><a class="footnote-anchor" id="footnote-ref1"></a></sup></li><li>如果你在 macOS Tahoe 26.5.1 及更早版本上安装了 Xcode 27 测试版,由于已知错误,macOS 虚拟机安装将会失败并会损坏你的macOS的虚拟机模块。要恢复虚拟机安装功能,需要<a href="https://support.apple.com/en-us/102655" target="_blank" rel="noopener noreferrer">重新安装 macOS</a>操作。<sup class="footnote-ref"><a href="#footnote2">[2]</a><a class="footnote-anchor" id="footnote-ref2"></a></sup></li><li>在虚拟机中登录加入开发者计划的Apple账号后会发现你不能在虚拟机中接收Beta更新。<sup class="footnote-ref"><a href="#footnote3">[3]</a><a class="footnote-anchor" id="footnote-ref3"></a></sup></li></ul><blockquote><p>并且 macOS 27 不在支持Intel架构的 Mac 设备,所以黑苹果方案也不可行。</p></blockquote><p>在苹果的层层阻挠之下,我们应该不能使用在实体机之外的方案安装测试版的虚拟机了吧?不,还是有方案的。在基于Apple Silicon的Mac上安装macOS虚拟机,使用的是统一的虚拟化框架<sup class="footnote-ref"><a href="#footnote4">[4]</a><a class="footnote-anchor" id="footnote-ref4"></a></sup>。在使用IPSW进行全新安装时,由于<code>VZMacOSInstaller</code>API差异,会导致安装失败。<sup class="footnote-ref"><a href="#footnote5">[5]</a><a class="footnote-anchor" id="footnote-ref5"></a></sup>但是只需要绕开这个API即可安装。在没有测试版系统设备的前提下,只能先安装正式版本的macOS的虚拟机,然后再升级到macOS 27 Beta.</p><p>在社区中有人提供了解决方案<sup class="footnote-ref"><a href="#footnote6">[6]</a><a class="footnote-anchor" id="footnote-ref6"></a></sup>,在系统中输入下面这一段命令,使得系统可以在Beta通道获取更新。</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token function">sudo</span> defaults <span class="token function">write</span> com.apple.MobileAsset MobileAssetAssetAudience <span class="token parameter variable">-string</span> 621ba5ab-54b6-4a71-891a-425ac0ce4551</span>
2<span class="line"><span class="token function">sudo</span> defaults <span class="token function">write</span> com.apple.MobileAsset MobileAssetServerURL-com.apple.MobileAsset.SoftwareUpdate <span class="token parameter variable">-string</span> <span class="token string">&quot;https://swscan.apple.com/content/catalogs/others/index-27seed-27-26-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz&quot;</span></span>
3<span class="line"><span class="token function">sudo</span> <span class="token function">killall</span> <span class="token parameter variable">-HUP</span> mobileassetd</span>
4<span class="line"><span class="token function">sudo</span> <span class="token function">killall</span> <span class="token parameter variable">-HUP</span> betaenrollmentd</span>
5<span class="line"><span class="token function">open</span> <span class="token string">&quot;x-apple.systempreferences:com.apple.Software-Update-Settings.extension&quot;</span></span>
6<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>其中,<code>MobileAssetAssetAudience</code>和<code>MobileAssetServerURL-com.apple.MobileAsset.SoftwareUpdate</code>可以在已经开启对应Beta版通道的macOS中提取。</p><div class="language-bash line-numbers-mode" data-highlighter="prismjs" data-ext="sh"><pre><code class="language-bash"><span class="line"><span class="token function">sudo</span> defaults <span class="token builtin class-name">read</span> com.apple.MobileAsset MobileAssetAssetAudience</span>
7<span class="line"><span class="token function">sudo</span> defaults <span class="token builtin class-name">read</span> com.apple.MobileAsset MobileAssetServerURL-com.apple.MobileAsset.SoftwareUpdate</span>
8<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><hr class="footnotes-sep"><section class="footnotes"><ol class="footnotes-list"><li id="footnote1" class="footnote-item"><p>Installing macOS Tahoe virtual machine on a Mac running Sequoia, <
8a href="https://kb.parallels.com/en/130992" target="_blank" rel="noopener noreferrer">kb.parallels.com</a>. <a href="#footnote-ref1" class="footnote-backref">↩︎</a></p></li><li id="footnote2" class="footnote-item"><p>If you installed Xcode 27 beta on macOS Tahoe 26.5.1 and earlier, macOS virtual machine installation will fail due to a known bug. To restore virtual machine installation functionality follow the How to reinstall macOS guide. (179068335) --Xcode 27 Beta 2 Release Notes, <a href="https://developer.apple.com/documentation/xcode-release-notes/xcode-27-release-notes" target="_blank" rel="noopener noreferrer">developer.apple.com</a>. <a href="#footnote-ref2" class="footnote-backref">↩︎</a></p></li><li id="footnote3" class="footnote-item"><p>Installing betas now requires signing in with an Apple ID that&#39;s enrolled in the beta program (be it the developer, customer, or public betas), and unfortunately signing in with an Apple ID inside a macOS VM is also not supported. --Upgrade to macOS Beta within VirtualBuddy?, <a href="https://github.com/insidegui/VirtualBuddy/discussions/194#discussioncomment-6406771" target="_blank" rel="noopener noreferrer">github.com</a>. <a href="#footnote-ref3" class="footnote-backref">↩︎</a></p></li><li id="footnote4" class="footnote-item"><p>The Virtualization framework provides high-level APIs for creating and managing virtual machines (VM) on Apple silicon and Intel-based Mac computers. Use this framework to boot and run macOS or Linux-based operating systems in custom environments that you define. The framework supports the Virtual I/O Device (VIRTIO) specification, which defines standard interfaces for many device types, including network, socket, serial port, storage, entropy, and memory-balloon devices. --Virtualization, <a href="https://developer.apple.com/documentation/virtualization" target="_blank" rel="noopener noreferrer">developer.apple.com</a>. <a href="#footnote-ref4" class="footnote-backref">↩︎</a></p></li><li id="footnote5" class="footnote-item"><p>A macOS 27 guest should run on a macOS 26.6 host, but we discovered a late incompatibility between the VZMacOSInstaller API on macOS 26.6 and the macOS 27 IPSW. --Does virtualizing macOS 27 require a macOS 27 host?, <a href="https://developer.apple.com/forums/thread/830118?answerId=890588022" target="_blank" rel="noopener noreferrer">developer.apple.com</a>. <a href="#footnote-ref5" class="footnote-backref">↩︎</a></p></li><li id="footnote6" class="footnote-item"><p>Instructions for macOS Golden Gate beta, <a href="https://github.com/insidegui/VirtualBuddy/discussions/194#discussioncomment-17407244" target="_blank" rel="noopener noreferrer">github.com</a>. <a href="#footnote-ref6" class="footnote-backref">↩︎</a></p></li></ol></section>`,10)])])}const c=a(n,[["render",l]]),p=JSON.parse('{"path":"/posts/get-macos-beta-command.html","title":"另类的macOS Beta安装方式(使用pkg安装包+使用命令获取Beta更新权限)","lang":"zh-CN","frontmatter":{"title":"另类的macOS Beta安装方式(使用pkg安装包+使用命令获取Beta更新权限)","tag":["macOS"],"category":["macOS"],"description":"在 macOS 新版本发布之后,很多开发者和极客想要体验新系统特性,但是又不想在自己的主力 Mac 更新 beta 版本(因为不太稳定),只能尝试在虚拟机上安装。但是在上手安装虚拟机时,就会发现以下的几个深坑: macOS 正式版不能直接安装更新的测试版的虚拟机,需要安装测试版Xcode或者Mobile Device Support.[1] 如果你在 ...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"另类的macOS Beta安装方式(使用pkg安装包+使用命令获取Beta更新权限)\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-07-03T11:16:12.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"undefined\\",\\"url\\":\\"https://www.hestudio.net/about/\\",\\"email\\":\\"[email protected]\\"}]}"],["meta",{"property":"og:url","content":"https://www.hestudio.net/posts/get-macos-beta-command.html"}],["meta",{"property":"og:site_name","content":"heStudio"}],["meta",{"property":"og:title","content":"另类的macOS Beta安装方式(使用pkg安装包+使用命令获取Beta更新权限)"}],["meta",{"property":"og:description","content":"在 macOS 新版本发布之后,很多开发者和极客想要体验新系统特性,但是又不想在自己的主力 Mac 更新 beta 版本(因为不太稳定),只能尝试在虚拟机上安装。但是在上手安装虚拟机时,就会发现以下的几个深坑: macOS 正式版不能直接安装更新的测试版的虚拟机,需要安装测试版Xcode或者Mobile Device Support.[1] å¦
8‚果你在 ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2026-07-03T11:16:12.000Z"}],["meta",{"property":"article:tag","content":"macOS"}],["meta",{"property":"article:modified_time","content":"2026-07-03T11:16:12.000Z"}]]},"git":{"createdTime":1783077372000,"updatedTime":1783077372000},"readingTime":{"minutes":2.73,"words":818},"filePathRelative":"posts/get-macos-beta-command.md","excerpt":"<p>在 macOS 新版本发布之后,很多开发者和极客想要体验新系统特性,但是又不想在自己的主力 Mac 更新 beta 版本(因为不太稳定),只能尝试在虚拟机上安装。但是在上手安装虚拟机时,就会发现以下的几个深坑:</p>\\n<ul>\\n<li>macOS 正式版不能直接安装更新的测试版的虚拟机,需要安装测试版Xcode或者Mobile Device Support.<sup class=\\"footnote-ref\\"><a href=\\"#footnote1\\">[1]</a><a class=\\"footnote-anchor\\" id=\\"footnote-ref1\\"></a></sup></li>\\n<li>如果你在 macOS Tahoe 26.5.1 及更早版本上安装了 Xcode 27 测试版,由于已知错误,macOS 虚拟机安装将会失败并会损坏你的macOS的虚拟机模块。要恢复虚拟机安装功能,需要<a href=\\"https://support.apple.com/en-us/102655\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">重新安装 macOS</a>操作。<sup class=\\"footnote-ref\\"><a href=\\"#footnote2\\">[2]</a><a class=\\"footnote-anchor\\" id=\\"footnote-ref2\\"></a></sup></li>\\n<li>在虚拟机中登录加入开发者计划的Apple账号后会发现你不能在虚拟机中接收Beta更新。<sup class=\\"footnote-ref\\"><a href=\\"#footnote3\\">[3]</a><a class=\\"footnote-anchor\\" id=\\"footnote-ref3\\"></a></sup></li>\\n</ul>","autoDesc":true}');export{c as comp,p as data};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.