Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

drewster99
Copy link
Contributor

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.

@freak4pc freak4pc merged commit 34e361c into ReactiveX:main Apr 20, 2024
4 checks passed
@freak4pc
Copy link
Member

Nice, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants