Closed karwa closed 4 months ago
Linked to rdar://111935931
This is fixed in macOS 14.4 and iOS 17.4.
Fixed in macOS 14.4 and iOS 17.4 (and other corresponding releases). The deprecated API now include introduction versions in the SDK version of swift-system.
I have a function which makes use of
FilePath(cString:)
, so it can be used as far back as macOS 11/iOS 14.Now, I'm getting a warning that that initializer has been deprecated (in favour of
platformString:
). That's fine, but I'd still like to make use of the old initializer on those older OSes. Unfortunately, even when I only use the deprecated initializer on a fallback path, I still get warnings:I believe the reason for this is that the
@available
annotations do not include version information. It is possible to write something like:@available(macOS, introduced: 11, deprecated: 12)