fix(share): declare the local network usage description
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.
main
parent
ed4acee2e4
commit
bc5d3b80d4
|
|
@ -4,6 +4,8 @@
|
|||
<dict>
|
||||
<key>NSScreenCaptureUsageDescription</key>
|
||||
<string>Shift captures the area you select for screenshots and screen recordings.</string>
|
||||
<key>NSLocalNetworkUsageDescription</key>
|
||||
<string>Shift looks for other Shift copies on the same network so you can send files between them.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Shift can include microphone audio in screen recordings when you enable it.</string>
|
||||
<key>NSDesktopFolderUsageDescription</key>
|
||||
|
|
|
|||
Loading…
Reference in New Issue