Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite Expression - name space conflict with Xcode 16/iOS 18

When you will update Xcode 15 to Xcode 16, you will get many errors using SQLite.swift library.

For example: Missing argument label 'value:' in call etc, etc.

How to fix them?

like image 437
Kashif Rabbani Avatar asked Sep 04 '26 00:09

Kashif Rabbani


2 Answers

How to fix it?

Just add typealias Expression = SQLite.Expression as a class attribute. It worked perfectly fine for me. Other solutions could be to import SQLite.Expression if it can work for your case.

References:

https://github.com/stephencelis/SQLite.swift/issues/1269

https://github.com/stephencelis/SQLite.swift/issues/1277

like image 151
Kashif Rabbani Avatar answered Sep 05 '26 13:09

Kashif Rabbani


Xcode 15

Expression<String>("id")

Xcode 16

SQLite.Expression<String>("id")
like image 40
Akbar Khan Avatar answered Sep 05 '26 15:09

Akbar Khan