On Apple Watch i get this error that cause the crash of the app:
WatchKit App Extension[548:794557] Fatal error: Double value cannot be converted to Int because the result would be greater than Int.max: file Swift/armv7k-apple-watchos.swiftinterface, line 31242
The problem is for the var millisecondsSince1970 in the file Date+Extension.swift (line 29):
// Extended functionality to get milliseconds from 1970 to present time
public var millisecondsSince1970: Int {
return Int((self.timeIntervalSince1970 * 1000.0).rounded())
}
On Apple Watch i get this error that cause the crash of the app:
WatchKit App Extension[548:794557] Fatal error: Double value cannot be converted to Int because the result would be greater than Int.max: file Swift/armv7k-apple-watchos.swiftinterface, line 31242The problem is for the var
millisecondsSince1970in the fileDate+Extension.swift(line 29):