<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>MacOS on Ito Archives</title>
    <link>https://itoschum.me/tags/macos/</link>
    <description>Recent content in MacOS on Ito Archives</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 12 Jan 2026 12:53:00 -0500</lastBuildDate>
    <atom:link href="https://itoschum.me/tags/macos/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Safely Unmounting Unresponsive iOS Simulator Disk Images on macOS</title>
      <link>https://itoschum.me/logs/log_14/</link>
      <pubDate>Mon, 12 Jan 2026 12:53:00 -0500</pubDate>
      <guid>https://itoschum.me/logs/log_14/</guid>
      <description>&lt;h2 id=&#34;issue-description&#34;&gt;Issue Description&lt;/h2&gt;&#xA;&lt;p&gt;After use in Xcode, the iOS simulator on macOS occasionally leaves behind mounted disk images that become unresponsive and cannot be unmounted through standard methods. This can lead to cluttered disk space and potential conflicts with future simulator sessions.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Screenshots of the issue:&#xA;&lt;img src=&#34;https://itoschum.me/images/log_14/disk5s1_volume.jpg&#34; alt=&#34;Screenshot reference&#34;&gt;&#xA;&lt;img src=&#34;https://itoschum.me/images/log_14/disk7s1_volume.jpg&#34; alt=&#34;Screenshot reference&#34;&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In the example above, it was observed that certain simulator disk images, such as &lt;code&gt;disk5s1&lt;/code&gt; and &lt;code&gt;disk7s1&lt;/code&gt;, remained mounted but unresponsive. When attempting to unmount these volumes using Disk Utility, it always prompted saying the volume was in use, even after quitting Xcode and all related processes (the &lt;code&gt;CoreSimulator&lt;/code&gt; related processes always reappeared after being killed).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Solution to Restore Recently Deleted Albums from iCloud Photos Library</title>
      <link>https://itoschum.me/logs/log_10/</link>
      <pubDate>Mon, 20 Oct 2025 03:20:00 -0400</pubDate>
      <guid>https://itoschum.me/logs/log_10/</guid>
      <description>&lt;h2 id=&#34;issue-description&#34;&gt;Issue Description&lt;/h2&gt;&#xA;&lt;p&gt;During the Beta testing of the new iPadOS 26, I accidentally deleted all albums in my iCloud Photos Library on my iPad, which then synced the deletion to my other Apple devices. This resulted in the loss of all my photo albums, although the photos themselves remained intact in the &amp;ldquo;All Photos&amp;rdquo; section.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solutions&#34;&gt;Solutions&lt;/h2&gt;&#xA;&lt;h3 id=&#34;1-find-the-deleted-albums-in-the-photossqlite-database&#34;&gt;1. Find the Deleted Albums in the Photos.sqlite Database&lt;/h3&gt;&#xA;&lt;p&gt;Find the Photos.sqlite database file in the Photos Library package. The path to the database file is as follows:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Visual Studio Code C/C&#43;&#43; Extension Setup on M1 Mac</title>
      <link>https://itoschum.me/logs/log_06/</link>
      <pubDate>Wed, 17 Mar 2021 14:32:00 -0400</pubDate>
      <guid>https://itoschum.me/logs/log_06/</guid>
      <description>&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Visual Studio Code extension &lt;code&gt;ms-vscode.cpptools&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Xcode Command-line Tools / Xcode IDE&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;To install Xcode Command-line Tools: &lt;code&gt;xcode-select --install&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;To install Xcode IDE: &lt;code&gt;mas install Xcode&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;test-environment&#34;&gt;Test Environment&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Visual Studio Code 1.54.3 (Universal)&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8&lt;/li&gt;&#xA;&lt;li&gt;Extension: ms-vscode.cpptools v1.2.2&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;macOS 11.2.3&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ uname -v&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Darwin Kernel Version 20.3.0: Thu Jan &lt;span style=&#34;color:#ae81ff&#34;&gt;21&lt;/span&gt; 00:06:51 PST 2021;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root:xnu-7195.81.3~1/RELEASE_ARM64_T8101&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Xcode 12.4 (12D4e)&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ clang --version&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Apple clang version 12.0.0 &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;clang-1200.0.32.29&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Target: arm64-apple-darwin20.3.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Thread model: posix&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;setup&#34;&gt;Setup&lt;/h2&gt;&#xA;&lt;p&gt;Modify the &lt;code&gt;settings.json&lt;/code&gt; in Visual Studio Code as shown below&lt;/p&gt;</description>
    </item>
    <item>
      <title>iWork 版本管理文件清理（HFS&#43; Only）</title>
      <link>https://itoschum.me/logs/log_03/</link>
      <pubDate>Wed, 26 Jul 2017 01:34:00 +0800</pubDate>
      <guid>https://itoschum.me/logs/log_03/</guid>
      <description>&lt;p&gt;13/06/2018 更新&lt;br&gt;&#xA;  如今在 APFS 下，Apple 似乎已经弃用了这套版本管理逻辑，所以版本管理也不再臃肿。&lt;/p&gt;&#xA;&lt;p&gt;  今天打开 About This Mac &amp;gt; Storage &amp;gt; Manage &amp;gt; Review Files &amp;gt; File Browser, 突然发现了 ~/Library/Application Support/CloudDocs/session/r 目录下大量的 iWork 版本管理文件，而且一看容量有 13.5GB（如下图）。&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://itoschum.me/images/log_03/iwork_01.jpg&#34; width=&#34;100%&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;  这样来看 iWork 文件华丽的版本管理背后并不光彩，Apple 没有选择增量备份，而是简单粗暴地用副本来完成类似 Time Machine 的版本管理（如封面图）。&lt;/p&gt;&#xA;&lt;p&gt;  之后不论是 File Browser 还是 Finder 都无法删除这些 History Edition 文件（如下图）。&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://itoschum.me/images/log_03/iwork_02.jpg&#34; width=&#34;100%&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;  无奈只好用 rm 命令再把文件拖入 Terminal 强删（如下图）。&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://itoschum.me/images/log_03/iwork_03.jpg&#34; width=&#34;65%&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;  另外不知为什么此目录下的文件虽然不是隐藏文件，但在 Terminal 中是不可见的，需 ls -a / -al（如下图）。&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://itoschum.me/images/log_03/iwork_04.jpg&#34; width=&#34;90%&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;  remove 完较大的 Keynote History Version 文件之后，算是清理出了不少硬盘空间，可能这就是所谓的 Purgeable 文件吧（如下图）。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Unlock Mac over Apple Watch</title>
      <link>https://itoschum.me/logs/log_01/</link>
      <pubDate>Tue, 28 Feb 2017 23:20:00 +0800</pubDate>
      <guid>https://itoschum.me/logs/log_01/</guid>
      <description>&lt;p&gt;  本人在北京时间 9 月 21 日更新了 watchOS 3 与 macOS 10.12 ，尝试使用 Apple Watch 解锁 Mac 的新特性，遇到了一些问题，在此记录。&lt;/p&gt;&#xA;&lt;p&gt;Sept. 21st, I updated my devices to watchOS 3 and macOS 10.12, trying Apple Watch&amp;rsquo;s new feature unlocking the Mac. And there were some matters occurred, which was the reason why I logged them here.&lt;/p&gt;&#xA;&lt;p&gt;  “系统偏好设置”内“安全性与隐私”设置中可以找到“允许 Apple Watch 解锁 Mac ”的勾选项，但仅在满足 watchOS 3 + macOS 10.12 + 开启“双重认证”／“两步验证”的情况下会显示。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
