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
{{ message }}
Repository navigation
Expression - name space conflict with Xcode 16/iOS 18 #1269
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
Reacted by furiosFast, Dominik Paľo, Jozef Izso, Camden Fullmer, Sixian Li, KKBytes0629 and Evgeniy Branitsky
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
Reacted by Karl Kraft, DUXINFENG, Kai Winter, Paul Tsochantaris, Dave Glassco, Michael Pchelnikov, brain9520, furiosFast, FenWangXiaoLong, george308turner and 36 more
Reacted by agugel, Karl Kraft, Pierluigi Cifani, DUXINFENG, Michael Luegmayer, Paul Tsochantaris, Amelia, Luca DB, FenWangXiaoLong, lutc and 13 more
Activity
JohnnyTseng commentedon Jun 14, 2024
To anyone who is having this issue, a temporary fix would be adding
SQLitenamespace before theExpressionto let Xcode know we are referring to SQLite'sExpressioninstead of Foundation's.Example:
Expression<String>("id")SQLite.Expression<String>("id")This would fix this issue
neodave commentedon Jun 24, 2024
Thank you JohnnyTseng, great info
tcollins590 commentedon Jun 25, 2024
Any ideas how to solve this without refactoring our entire codebase to explicitly call SQLite?
kaiwinter commentedon Jun 25, 2024
@tcollins590 You could define a
typealiasat file level which makes it globally visible:typealias Expression = SQLite.Expressionrnapier commentedon Jul 5, 2024
Or
import SQLite.Expression