1

I read the similar question @ Cannot Import SQLite for SQLite Swift Wrapper but it wasn't quite my scenerio.

Xcode 14.3.1

I started a macOS Library project in Xcode. I added the SQLite.xcodeproj file to my project.

enter image description here

However, instructions then tell me to add the framework using the General tab of my target. In my case, the General tab does not exist for my main target (it does exist for my Tests target. See below

enter image description here

I may very well be using an incorrect project type. I started with macOS Library. My plan is to develop a static library to later use with other SwiftUI projects. I am definitely open to changing the starting project type.

ccampj
  • 665
  • 1
  • 8
  • 18
  • Did you select the CoreData support during creating the project? You can not import SQLite because it is not a Library. If you have to import CoreData where SQLLite is under the hood. Look [here](https://cynoteck.com/blog-post/core-data-with-swift/) or google any other tutorial with Starting with CoreData – Wolfgang Wilke Jul 02 '23 at 05:09
  • @WolfgangWilke I don’t think this is about Core Data at all. – Joakim Danielson Jul 02 '23 at 06:04
  • 2
    OP, why not use a swift package and what is SQLite.xcodeproj? – Joakim Danielson Jul 02 '23 at 06:05
  • Brilliant. I didn't think it was set up as a package, but upon further reading, it has a package @ https://github.com/stephencelis/SQLite.swift.git. Thank you. – ccampj Jul 02 '23 at 11:35

0 Answers0