How to load data into your app's sqlite db?

I can't find any information on this topic, either I'm totally missing the point (or button) or it just can't be done. What? It must be possible.

Anyway, I have developed an App (whoeaa!) and now I want to store information in my newly created sqlite db via CoreData. I can do this by adding it myself through the addItem in the app, but having more than a hundred, I rather do it automatic at once. Is there an import data option in the .xcdatamodel screen in Xcode? I'm on Xcode 13.1, developing for iOS 14.0.

Thank you!

You have data in CoreData.

Why do you need to transfer to SQLite ? To use by other apps ?

If it is to use by the app itself, why do you need a different store than CoreData ? Or why not manage data directly in SQLite ?

Have a look here, that may help:

h t t p s : / / w w w.raywenderlich.com/6620276-sqlite-with-swift-tutorial-getting-started

Is there an import data option in the .xcdatamodel screen in Xcode?

NO.

can do this by adding it myself through the addItem in the app, but having more than a hundred, rather do it automatic at once.

You can include as much resource into your app bundle, and call your addItem in the start up routine of your app.

How to load data into your app's sqlite db?
 
 
Q