diff --git a/Package.swift b/Package.swift index 144de15..2806ffd 100644 --- a/Package.swift +++ b/Package.swift @@ -5,7 +5,6 @@ let package = Package( name: "SwiftDataGatewayClient", platforms: [ .iOS(.v18), - .macOS(.v15), ], products: [ .library(name: "DGWProto", targets: ["DGWProto"]), diff --git a/Sources/DataGatewayClient/FilePreparation.swift b/Sources/DataGatewayClient/FilePreparation.swift index 5aa2f15..e3d71ab 100644 --- a/Sources/DataGatewayClient/FilePreparation.swift +++ b/Sources/DataGatewayClient/FilePreparation.swift @@ -592,7 +592,7 @@ package struct SecurityScopedFileAccessor: SecurityScopedFileAccessing { } package func bookmarkData(for fileURL: URL) throws -> Data { - try fileURL.bookmarkData(options: [.minimalBookmark, .withSecurityScope], includingResourceValuesForKeys: nil, relativeTo: nil) + try fileURL.bookmarkData(options: [.minimalBookmark], includingResourceValuesForKeys: nil, relativeTo: nil) } private func resolveSecurityScopedURL(fileURL: URL, bookmarkData: Data?) -> URL { @@ -603,7 +603,7 @@ package struct SecurityScopedFileAccessor: SecurityScopedFileAccessing { var bookmarkDataIsStale = false guard let resolvedURL = try? URL( resolvingBookmarkData: bookmarkData, - options: [.withSecurityScope], + options: [], relativeTo: nil, bookmarkDataIsStale: &bookmarkDataIsStale ) else {