We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01b884 commit b5a4f51Copy full SHA for b5a4f51
AmplifyPlugins/Logging/Sources/AWSCloudWatchLoggingPlugin/Persistence/LogRotation.swift
@@ -209,9 +209,9 @@ final class LogRotation {
209
contents: nil,
210
attributes: [FileAttributeKey: Any]()
211
)
212
- if #available(macOS 11.0, *) {
+ if #available(macOS 11.0, iOS 9.0, *) {
213
let resourceValues: [URLResourceKey: Any] = [
214
- URLResourceKey.fileProtectionKey: URLFileProtection.complete,
+ URLResourceKey.fileProtectionKey: URLFileProtection.completeUntilFirstUserAuthentication,
215
URLResourceKey.isExcludedFromBackupKey: true
216
]
217
try (fileURL as NSURL).setResourceValues(resourceValues)
0 commit comments