diff --git a/RevenueCatUI/Helpers/Logger.swift b/RevenueCatUI/Helpers/Logger.swift index bc3840d6cc..b4dae10759 100644 --- a/RevenueCatUI/Helpers/Logger.swift +++ b/RevenueCatUI/Helpers/Logger.swift @@ -19,7 +19,7 @@ enum Logger { static func verbose( _ text: CustomStringConvertible, - file: String = #file, + file: String = #fileID, function: String = #function, line: UInt = #line ) { @@ -35,7 +35,7 @@ enum Logger { static func debug( _ text: CustomStringConvertible, - file: String = #file, + file: String = #fileID, function: String = #function, line: UInt = #line ) { @@ -50,7 +50,7 @@ enum Logger { static func warning( _ text: CustomStringConvertible, - file: String = #file, + file: String = #fileID, function: String = #function, line: UInt = #line ) { @@ -65,7 +65,7 @@ enum Logger { static func error( _ text: CustomStringConvertible, - file: String = #file, + file: String = #fileID, function: String = #function, line: UInt = #line ) { @@ -81,7 +81,7 @@ enum Logger { private static func log( _ text: CustomStringConvertible, _ level: LogLevel, - file: String = #file, + file: String = #fileID, function: String = #function, line: UInt = #line ) { diff --git a/Sources/Error Handling/Assertions.swift b/Sources/Error Handling/Assertions.swift index 9f93155ac3..837c34967b 100644 --- a/Sources/Error Handling/Assertions.swift +++ b/Sources/Error Handling/Assertions.swift @@ -19,7 +19,7 @@ import Foundation func RCTestAssert( _ condition: @autoclosure () -> Bool, _ message: @autoclosure () -> String, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line ) { #if DEBUG @@ -32,7 +32,7 @@ func RCTestAssert( @inline(__always) func RCTestAssertNotMainThread( function: StaticString = #function, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line ) { #if DEBUG