-
-
Notifications
You must be signed in to change notification settings - Fork 783
Closed
Description
There are some errors in Ubuntu 20.02 and Swift 5.3.
....Resolving https://github.com/malcommac/SwiftDate.git at 6.2.0
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:34:38: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
public var zeroFormattingBehavior: DateComponentsFormatter.ZeroFormattingBehavior?
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:37:26: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
public var unitsStyle: DateComponentsFormatter.UnitsStyle?
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:48:44: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
public func apply(toFormatter formatter: DateComponentsFormatter) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:75:43: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
private static func sharedFormatter() -> DateComponentsFormatter {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:127:21: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
func toClock(zero: DateComponentsFormatter.ZeroFormattingBehavior = [.pad, .dropLeading]) -> String {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:76:45: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
let name = "SwiftDate_\(NSStringFromClass(DateComponentsFormatter.self))"
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:97:19: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
let formatter = DateComponentsFormatter()
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
^
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:103:54: error: cannot infer contextual base in reference to member 'pad'
if options.zeroFormattingBehavior?.contains(.pad) ?? false {
~^~~
../.build/checkouts/SwiftDate/Sources/SwiftDate/Foundation+Extras/TimeInterval+Formatter.swift:131:21: error: cannot infer contextual base in reference to member 'positional'
$0.unitsStyle = .positional
Metadata
Metadata
Assignees
Labels
No labels