RxSwift icon indicating copy to clipboard operation
RxSwift copied to clipboard

Resolves issue 2554 (Missing imports warn 'this is an error in Swift 6')

Open drewster99 opened this issue 2 years ago • 0 comments

Summary

This commit resolves issue 2554, where Release builds of RxSwift (and other targets) emit many warnings that various references to Foundation types, such as Foundation.Date and Dispatch.DispatchTimeInterval, cannot be used because their definition was never imported, and that this warning will be a hard error in Swift 6.

Implementation detail

These are resolved by simply adding "import Foundation" to the files generating the warnings.

Other thoughts

If those files weren't importing Foundation on purpose, for some reason, the individual types needed could be imported instead.

drewster99 avatar Nov 08 '23 23:11 drewster99