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.
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
andDispatch.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.