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

Expression - name space conflict with Xcode 16/iOS 18 #1269

Open
neodave opened this issue Jun 13, 2024 · 5 comments
Open

Expression - name space conflict with Xcode 16/iOS 18 #1269

neodave opened this issue Jun 13, 2024 · 5 comments

Comments

@neodave
Copy link

neodave commented Jun 13, 2024

Build Information

0.15.3
Xcode Beta 16
iOS 18/macOS 15
Using Swift Package

When updating to the latest Xcode beta 16 there is a name space conflict between the SGLite struct Expression and the new Expression found in Apple's Foundation framework. Attached are screenshots of both. I will attempt to fix this and if I do I will submit a PR

Screenshot 2024-06-13 at 10 33 24 AM Screenshot 2024-06-13 at 10 27 07 AM
@JohnnyTseng
Copy link

JohnnyTseng commented Jun 14, 2024

To anyone who is having this issue, a temporary fix would be adding SQLite namespace before the Expression to let Xcode know we are referring to SQLite's Expression instead of Foundation's.

Example:

  • Xcode 15
    Expression<String>("id")
  • Xcode 16
    SQLite.Expression<String>("id")

This would fix this issue

@neodave
Copy link
Author

neodave commented Jun 24, 2024

Thank you JohnnyTseng, great info

@tcollins590
Copy link

Any ideas how to solve this without refactoring our entire codebase to explicitly call SQLite?

@kaiwinter
Copy link

@tcollins590 You could define a typealias at file level which makes it globally visible:

typealias Expression = SQLite.Expression

@rnapier
Copy link

rnapier commented Jul 5, 2024

Or import SQLite.Expression

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

No branches or pull requests

5 participants