You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Swift compiler bug, rather than a Foundation bug.
When compiling Foundation, a number of errors are reported that are to do with NSRange having an extension on CustomPlaygroundQuickLookable, from here:
Considering there's only three places in the Foundation codebase that has these extensions, it's a massive logging explosion:
Foundation/Date.swift:extensionDate : CustomPlaygroundQuickLookable {
Foundation/Date.swift: @available(*, deprecated, message: "Date.customPlaygroundQuickLook will be removed in a future Swift version")
Foundation/Date.swift: publicvarcustomPlaygroundQuickLook: PlaygroundQuickLook {
Foundation/NSRange.swift:extensionNSRange : CustomPlaygroundQuickLookable {
Foundation/NSRange.swift: @available(*, deprecated, message: "NSRange.customPlaygroundQuickLook will be removed in a future Swift version")
Foundation/NSRange.swift: publicvarcustomPlaygroundQuickLook: PlaygroundQuickLook {
Foundation/URL.swift:extensionURL : CustomPlaygroundQuickLookable {
Foundation/URL.swift: @available(*, deprecated, message: "URL.customPlaygroundQuickLook will be removed in a future Swift version")
Foundation/URL.swift: publicvarcustomPlaygroundQuickLook: PlaygroundQuickLook {
This isn't a bug so much as a consequence of how multi-file builds work—they can end up type-checking things in other files. It'd probably be okay to silence those diagnostics when not type-checking that particular file, but I'd want to think about it a little more. It's possible a particular error can only be detected from another file. (Not this one, though.)
Attachment: Download
Additional Detail from JIRA
md5: 1c777b672c1384d0c8452ee768c93bd0
Issue Description:
This is a Swift compiler bug, rather than a Foundation bug.
When compiling Foundation, a number of errors are reported that are to do with NSRange having an extension on CustomPlaygroundQuickLookable, from here:
https://github.com/apple/swift-corelibs-foundation/blob/387259544134c533a3af10b84ec9f031aa011d02/Foundation/NSRange.swift#L312-L317
However, the warning message is repeatedly displayed in the build log - grepping the output for NSRange:312 shows 88 matches in the log:
The text was updated successfully, but these errors were encountered: