mardi 1 décembre 2015

iOS: dyld: Library not loaded with SQLite

I'm using SQLite for the extension in an app. Everything work fine in Simulator, but error has occurred when i run the app in my device.

 dyld: Library not loaded: @rpath/SQLite.framework/SQLite Referenced from: /private/var/mobile/Containers/Bundle/Application/898AED60-6F5F-482C-83FC-A55655599429/*.app/PlugIns/*.appex/* Reason: image not found 

I have to add framework to "Copy files" section in the extension. Trouble solved.

But when i run the app on my device, i have to uncheck on option "Copy only when installing" and when i run my app on simulator, i have to check on it. If i didn't new error will show:

error: make directory /Users/*/Library/Developer/Xcode/DerivedData/*-dlklrcpbpykobgbkaophrsrhssxr/Build/Products/Debug-iphonesimulator/*.appex/Frameworks/SQLite.framework: File exists 

How to solve it. And if i archive and upload app to appstore, whats about this option, how to get it run with simulator and device also?

Aucun commentaire:

Enregistrer un commentaire