crash: when block chain start ,some time crash
Thread 15: Fatal error: 'try!' expression unexpectedly raised an error: SQLite error 14: unable to open database file - while executing SELECT * FROM sqlite_master LIMIT 1
this code
public var lastBlock: Block? { try! dbPool.read { db in try Block.order(Block.Columns.height.desc).fetchOne(db) } }

This kind of error is thrown when the app cannot open database file. We had encountered this issue in our EthereumKit some time ago. It have been occurring when there were a lot of database files.
We could not find any reasonable description or solution of this kind of issues, and most likely it seems like the OS restricts accessing database files randomly.
Finally in EthereumKit we have refactored the code and decreased the number of database files. After that the issue seems to have disappeared.
As for BitcoinKit - there are no many database files though. Is this issue reproducible for you?
Hi, i have the same issue...

I have tried running Example app on my side with no issues. Are you running on simulator or device? If on device, what device is this?
@ealymbaev sometimes it happens. but now it does not happen the most of time. I had a project that was built on the example folder, but now it crashes with the same error here https://github.com/horizontalsystems/bitcoin-kit-ios/issues/595, is there a way I can update the project without rebuilding it from zero? what parts of code do I have to change? I saw that the last update was on the podfile.lock file so I copied and pasted on my podfile.lock and it did not work, I downloaded both the podfile.lock and the podifle and put it on my old example folder tried to pod install but it gave me an error