project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

xcode 9 and iOS 11 compatibility #291

Open pechn opened 6 years ago

pechn commented 6 years ago

I added EncryptedCoreData as one of the dependencies for my iOS APP project. Everything runs well at the compilation time. But APP will crash at the runtime. I have tried uninstalling the APP and reinstalling it, but the result is the same.

Crash Log: CoreData: error: Illegal attempt to save to a file that was never opened. "This NSPersistentStoreCoordinator has no persistent stores (unknown). It cannot perform a save operation.". No last error recorded.

Platform Information: Xcode 9.0.1 iOS 11 Mac OSX 10.13

Any help will be appreciative!

pechn commented 6 years ago

Now I manage to solve the issue by removing "-lsqlite3.0" from the section "Other Linker Flags" of my project's build settings. I guess there may have some method conflicts between SQLCipher and the linked library sqlite3.0.

StevenAppJob commented 5 years ago

Hi @pechn , I have the same issue, Is there another way to resolve it? I checked in my project "Other Linker Flags" and I don't have the "-lsqlite3.0" to remove it.

pechn commented 5 years ago

Hi @pechn , I have the same issue, Is there another way to resolve it? I checked in my project "Other Linker Flags" and I don't have the "-lsqlite3.0" to remove it.

Hi Steven, does your project link some other libraries and one of them link the SQLite lib? Please check the whole project settings as well as all the 3rd dependencies linked with CocoaPods or any other dependency management tool.