Sqlite.swift: App crash in Xcode 10.2 & error: unrecognized token: ":"

Created on 28 Mar 2019  路  11Comments  路  Source: stephencelis/SQLite.swift

App crash for this line: try! db.scalar(table.count)

Error: unrecognized token: ":"

Most helpful comment

@tanzolone & @milan-galitein Is it really solved? I updated the latest with carthage and built again, but still have the same problem in my app:

2019-03-31 18:08:15.747002+0800 [4122:899969] [logging] unrecognized token: ":"

All 11 comments

Duplicate of #888

@tanzolone & @milan-galitein Is it really solved? I updated the latest with carthage and built again, but still have the same problem in my app:

2019-03-31 18:08:15.747002+0800 [4122:899969] [logging] unrecognized token: ":"

as per https://github.com/stephencelis/SQLite.swift/issues/895

"it still does't work (Cocoapods),
but "pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift', :branch => 'master'
" is working right."

it doesn't work on carthage either.

Yes, I am facing the same issue :(. Anyone got solution for this?
[2901:106131] [logging] unrecognized token: ":"

@mitesh-iosdev my fix is to move to GRDB.swift. It works with Swift 5. It gives warnings but works well except for the in memory database that I don鈥檛 use.

Is there any fix for this issue yet? I have a swift 5 project had to force my pods to swift 4.2 for SQLite.swift to compile but I am still getting an error when doing a database.scalar(anything): unrecognized token: ":" (code: 1). I Tried @vajjhalas' fix but that doesn't work for me either.

It seems the author is busy and has abandoned the project. There is no even a help wanted sign on the issue so we can submit a pull request... As I said I already switched to GRDB.swift

I'm having the same problem. Estimated when it is solved?

Hi to all,
I have faced yesterday with the same issue. Check your query request, I had a problem with != ""

I resolved the issue by master branch and working for me. Please try once

pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift', :branch => 'master'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DiamondYuan picture DiamondYuan  路  3Comments

askari01 picture askari01  路  7Comments

Tchoupinax picture Tchoupinax  路  8Comments

pgawlowski picture pgawlowski  路  6Comments

leminhtuan2015 picture leminhtuan2015  路  5Comments