Somehow I cannot use the package (SQLite) from my code because the "import SQLite" is not found. This happens from a newly created and otherwise empty package as well.
How can I use the dependent package in my own package?
Sorry for the seemingly simple question but despite a lot of googleing and fiddling with targets/products, I don't get this to work. UI options in Xcode to add targets etc. exist only for apps, not for packages.
Any hints what I am doing wrong here greatly appreciated.
There's two places that you need to add dependencies to a swift package, and the second snippet isn't typically included in project READMEs - depending on the package, it can be a little quirky or hard to work out what to use.
The first piece is what you copied - that adds a dependency stanza to the overall Package declaration. The second is what I suspect you were missing - adding a reference to the target that needs the dependency.
The second place, that wasn't obviously referenced in the README of the library project, is the bit you add to a specific target: