From bc5d3b80d40fbd521e97552811287a2b74c46b3d Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Mon, 26 Oct 2026 18:54:25 +0800 Subject: [PATCH] fix(share): declare the local network usage description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Discovery stopped working after an upgrade without any change to share.rs: the last commit to touch it is b732b91, and only to record received files in the history library. What the upgrade does change is the code identity. Builds are ad-hoc signed, so every rebuild is a different binary to macOS, and the Local Network grant is keyed to that identity rather than to the bundle id - 系统设置 now lists five separate Shift rows, one per build this machine has run. The copy installed by the upgrade has an identity macOS has never been asked about. It also has no way to be asked: NSLocalNetworkUsageDescription was never declared, and macOS shows no local network prompt without it. The app then simply does not receive the group traffic, silently. The panel confirms the symptom is not specific to Shift's port - this Mac received zero mDNS and zero SSDP packets while its own beacons looped back fine, and unicast to a peer still works, which is how the two other copies were found by hand. Declaring the string lets the prompt appear for a new identity. The durable fix is the stable Developer ID identity already tracked under M5, which stops the grant from being lost on every single build. --- src-tauri/Info.plist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist index 01cbd89..31357ef 100644 --- a/src-tauri/Info.plist +++ b/src-tauri/Info.plist @@ -4,6 +4,8 @@ NSScreenCaptureUsageDescription Shift captures the area you select for screenshots and screen recordings. + NSLocalNetworkUsageDescription + Shift looks for other Shift copies on the same network so you can send files between them. NSMicrophoneUsageDescription Shift can include microphone audio in screen recordings when you enable it. NSDesktopFolderUsageDescription