iOS CocoaLumberjack: New log file is creating on every time app launch, if backgroundModes enabled and app running in simulator
问题 I have configured library like below let fileLogger: DDFileLogger = DDFileLogger() fileLogger.rollingFrequency = -1 fileLogger.maximumFileSize = 1024 * 1024 fileLogger.logFileManager.maximumNumberOfLogFiles = 7 DDLog.add(fileLogger) File has to roll only if it reaches 1MB size. Recently i observed one thing, if app running in simulator with background mode enabled. New log file is creating on every time app launch irrespective of file size. Is this known thing?. Because NSFileProtectionType