Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite/SQLite-Bridging.h not found in SQLite.swift

I'm using SQLite.swit (https://github.com/stephencelis/SQLite.swift) to develop an app. I was following the Pod installation guide and can get it running on iOS simulator. However, when I try to install the app on my test device, it shows the error

/Users/.../Build/Products/Debug-iphoneos/Pods/SQLite.framework/Headers/SQLite.h:9:9: 
error: 'SQLite/SQLite-Bridging.h' file not found

Is it my way of configuration incorrect? Anyway ran into the same issue as mine?

like image 858
firstprayer Avatar asked Dec 09 '22 02:12

firstprayer


1 Answers

I initially fixed this by changing the #include line to look like below:

#import "SQLite-Bridging.h"

I find it weird that I have to make such changes. Digging in deeper, I found what I think as cached files under ~/Library/Developer/Xcode/DerivedData. I clean up the folder related to my project and run pod update. That did it for me.

I was on older version of SQLite.swift and when upgrading, I deduce that xcode did not updating some cached files. If you also came from upgrading from older, the above trick may work for you.

like image 101
maresa Avatar answered Dec 22 '22 04:12

maresa