From aa8b5ddc264a803fa987f027b7b3120c6194bed2 Mon Sep 17 00:00:00 2001 From: mattt Date: Mon, 12 Oct 2026 05:36:42 -0700 Subject: [PATCH] Create security-scoped bookmarks for Phone and Messages Co-authored-by: Brad Hallett <53977268+bradhallett@users.noreply.github.com> --- App/Services/Messages.swift | 2 +- App/Services/Phone.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/App/Services/Messages.swift b/App/Services/Messages.swift index 1581fd12..8e300e8b 100644 --- a/App/Services/Messages.swift +++ b/App/Services/Messages.swift @@ -665,7 +665,7 @@ final class MessageService: NSObject, Service, NSOpenSavePanelDelegate { private func storeBookmark(for url: URL) { do { let bookmarkData = try url.bookmarkData( - options: .securityScopeAllowOnlyReadAccess, + options: [.withSecurityScope, .securityScopeAllowOnlyReadAccess], includingResourceValuesForKeys: nil, relativeTo: nil ) diff --git a/App/Services/Phone.swift b/App/Services/Phone.swift index 69bc9c0b..efa5ce6c 100644 --- a/App/Services/Phone.swift +++ b/App/Services/Phone.swift @@ -443,7 +443,7 @@ final class PhoneService: NSObject, Service, NSOpenSavePanelDelegate { private func storeBookmark(for url: URL) throws { let bookmarkData = try url.bookmarkData( - options: .securityScopeAllowOnlyReadAccess, + options: [.withSecurityScope, .securityScopeAllowOnlyReadAccess], includingResourceValuesForKeys: nil, relativeTo: nil )