diff --git a/MultiSoundChanger.xcodeproj/project.pbxproj b/MultiSoundChanger.xcodeproj/project.pbxproj index 78305f8..75c9711 100644 --- a/MultiSoundChanger.xcodeproj/project.pbxproj +++ b/MultiSoundChanger.xcodeproj/project.pbxproj @@ -442,7 +442,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.12; + MACOSX_DEPLOYMENT_TARGET = 10.10; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -497,7 +497,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.12; + MACOSX_DEPLOYMENT_TARGET = 10.10; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; diff --git a/MultiSoundChanger/Sources/Utils/Logger.swift b/MultiSoundChanger/Sources/Utils/Logger.swift index d7bd680..20d64d9 100644 --- a/MultiSoundChanger/Sources/Utils/Logger.swift +++ b/MultiSoundChanger/Sources/Utils/Logger.swift @@ -40,7 +40,7 @@ enum Logger { } static func debug(_ string: String) { - outPrint(symbol: .debug, string: string) + outAndFilePrint(symbol: .debug, string: string) } static func warning(_ string: String) { @@ -116,6 +116,9 @@ enum Logger { return } isFirstLog = false + guard FileManager.default.fileExists(atPath: url.path) else { + return + } try FileManager.default.removeItem(at: url) }