stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.64k stars 1.56k forks source link

'sqlite3.h' file not found #1000

Closed vbklv closed 4 years ago

vbklv commented 4 years ago

Error when building a project, which was building fine last week with the same project and Podfile settings:

'sqlite3.h' file not found

1. In file included from /project/Pods/SQLite.swift/Sources/SQLiteObjc/SQLite-Bridging.m:26:

Build Information

General guidelines

Podfile: pod 'SQLite.swift' pod 'YapDatabase/SQLCipher'

I tried adding sqlite3 to Podfile, tried updating and reverting SQLite.swift between 0.12.0 and 0.12.2, but it won't help.

vbklv commented 4 years ago

OK, the issue actually persists. The app builds and installs when it is already installed previously on the device. But it won't build or install on simulator.

Screenshot 2020-05-11 at 15 29 47
vbklv commented 4 years ago

Resolved by fixing SQLCipher version as described here: https://github.com/stephencelis/SQLite.swift/issues/986

  pod 'SQLCipher', '= 4.2.0'
  pod 'SQLite.swift/SQLCipher', '~> 0.12.2'
  pod 'YapDatabase/SQLCipher'