mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-27 00:13:38 +00:00
[ios] Log the error when the exclude from icloud fails
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
59499333ff
commit
c4d5109d5b
@@ -83,7 +83,7 @@ void Platform::DisableBackupForFile(std::string const & filePath)
|
||||
BOOL valueRaw = YES;
|
||||
CFNumberRef value = CFNumberCreate(kCFAllocatorDefault, kCFNumberCharType, &valueRaw);
|
||||
if (!CFURLSetResourcePropertyForKey(url, kCFURLIsExcludedFromBackupKey, value, &err))
|
||||
NSLog(@"Error while disabling iCloud backup for file: %s", filePath.c_str());
|
||||
LOG(LERROR, ("Error:", err, "while disabling iCloud backup for file:", filePath.c_str()));
|
||||
|
||||
CFRelease(value);
|
||||
CFRelease(url);
|
||||
|
||||
Reference in New Issue
Block a user