From f21d344440bf59a855cbd5414555ff5c0a51062f Mon Sep 17 00:00:00 2001 From: Julien Doche Date: Fri, 10 Apr 2026 13:48:56 +0200 Subject: [PATCH] fix(macos): add NSLocalNetworkUsageDescription for macOS 26 webview macOS 26 (Tahoe) blocks WKWebView from accessing localhost before the app can request Local Network permission. Without NSLocalNetworkUsageDescription in Info.plist, the OS silently denies access with no dialog, causing the Home and Device tabs to show a blank white screen. Add the three keys needed to trigger the permission prompt: - NSLocalNetworkUsageDescription: usage string shown to the user - NSBonjourServices: declares the service types the app uses - NSAllowsLocalNetworking: permits HTTP to localhost in WebViews Note: this file (cmake/modules/MacOSXBundleInfo.plist.in) is the template actually used by the CMake build. The src/dev-utils/platform/osx/Info.plist.in file already had these keys but was never wired to MACOSX_BUNDLE_INFO_PLIST. Fixes: https://github.com/Snapmaker/OrcaSlicer/issues/58 Fixes: https://github.com/Snapmaker/OrcaSlicer/issues/167 Co-Authored-By: Claude Sonnet 4.6 --- cmake/modules/MacOSXBundleInfo.plist.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cmake/modules/MacOSXBundleInfo.plist.in b/cmake/modules/MacOSXBundleInfo.plist.in index aac9d66fd4b..22ecf161cf0 100644 --- a/cmake/modules/MacOSXBundleInfo.plist.in +++ b/cmake/modules/MacOSXBundleInfo.plist.in @@ -132,13 +132,23 @@ NSHumanReadableCopyright ${MACOSX_BUNDLE_COPYRIGHT} - NSAppTransportSecurity + NSLocalNetworkUsageDescription + Snapmaker Orca needs access to your local network to discover and connect to your 3D printer(s), and to serve the app's device interface on localhost. + NSBonjourServices + + _http._tcp + _printer._tcp + + NSAppTransportSecurity NSAllowsArbitraryLoads - + NSAllowsArbitraryLoadsInWebContent + + NSAllowsLocalNetworking +