LiveClaude v2.2.8 為 macOS 12+ 提供 .NET 10、為 macOS 11 Big Sur 提供 .NET 8
Shipping .NET 10 for macOS 12+ and .NET 8 for macOS 11 Big Sur in one Avalonia app (LiveClaude v2.2.8)
LiveClaude v2.2.8 保持 .NET 10 為預設,並加入專供 macOS 11 Big Sur 使用的 .NET 8 建置路徑。.NET 10 的 Mach-O 二進制檔最低要求 macOS 12.0,因此 macOS 11 即使將 Info.plist 的 LSMinimumSystemVersion 設為 11.0,仍無法啟動應用程式。
If you use Claude Code Remote Control or Cursor My Machines from your phone, there is one brittle point in the workflow: both run as foreground processes inside a terminal. Close the window, hit a crash, or reboot — and your remote client loses the machine.
I built LiveClaude (MIT, C# / Avalonia) to turn those sessions into OS-supervised services:
-
OS-native restart policies: Scheduled Task (Windows),
systemd(Linux),LaunchAgent(macOS) - Desktop control plane: manage multiple projects, logs, and supervisor state from one Avalonia UI
-
Real embedded terminal:
ConPTYon Windows andptyon Linux/macOS with a C# VT emulator for one-time trust and login flows
The macOS 11 Big Sur trap with .NET 10
When shipping LiveClaude v2.2.x, we hit an interesting cross-platform constraint: .NET 10 Mach-O binaries (apphost and runtime .dylibs) are built by Microsoft with LC_BUILD_VERSION minos 12.0. Even if you lower LSMinimumSystemVersion to 11.0 in Info.plist, macOS 11 Big Sur still refuses to launch a .NET 10 app.
We didn't want to downgrade Windows, Linux, or macOS 12+ from .NET 10 just to support Big Sur. Instead, in v2.2.7–v2.2.8, we kept .NET 10 as the default everywhere and added a parallel .NET 8 build path specifically for macOS 11:
-
Parameterized
Directory.Build.props:<BaseTargetFramework>defaults tonet10.0, while all cross-platform.csprojfiles target$(BaseTargetFramework). The macOS CI job builds twice: once withnet10.0(standard.dmg) and once with-p:BaseTargetFramework=net8.0(-macos11.dmg). -
Ad-hoc deep signing & HFS+ DMGs (
v2.2.8): Stripping extended attributes (xattr -cr), signing the full.appbundle withcodesign --force --deep --sign -, verifying with--strict, and forcing-fs HFS+inhdiutil createso macOS 11 mounts and opens the DMG cleanly. -
Automatic OS-version detection:
- The User Manual download section inspects
navigator.userAgentData.getHighEntropyValues(['architecture', 'platformVersion'])(with a User-Agent fallback) to highlight-macos11.dmgon Big Sur while keeping direct links for both macOS 12+ and macOS 11. - In-app
Updates.cschecksOperatingSystem.IsMacOSVersionAtLeast(12)and pulls the matching.dmgfromupdate.json.
- The User Manual download section inspects
Try LiveClaude v2.2.8
-
Windows:
winget install LeandroCannizzaro.LiveClaude -
Linux (
.deb/.rpm/ one-liner):curl -fsSL https://leandrocannizzaro.github.io/LiveClaude/install.sh | sh -
macOS (12+ and 11 Big Sur):
curl -fsSL https://leandrocannizzaro.github.io/LiveClaude/install-macos.sh | sh
(I'm the author of LiveClaude — feedback, PRs, and stars are welcome.)
來源:DEV Community · dev.to