I have looked at answers to similar problems and I'm still confused.
Background
I had a project working, but I'm trying to recreate it in Xcode 8.3.1. I start by using the Swift Package Manager with one dependency: [.Package(url: "https://github.com/OpenKitten/MongoKitten.git", majorVersion: 3)]. I then follow my notes to convert from Cocoa to iOS (because SPM doesn't directly support iOS) that worked in previous project starts:
- Make starting Package.swift file
- swift package generate-xcodeproj
- Open project in Xcode
- Project : Build Settings : Base SDK ==> change to IOS
- Editor : Add Target : (iOS ... Single View App)
- Select your project, look at target list, find your newly added target : General : Deployment Info
- On toolbar, change "active scheme"
Everything seems fine, and my project includes MongoKitten and a bunch of other frameworks that it relies on. One of which is called "CLibreSSL". I added all of the frameworks as targets to my newly created target.
Error Message
I can "Import MongoKitten" into my viewcontroller (with autocomplete working). However, when I compile, I get this error message (even though I personally did not try to Import CLibreSSL):
Compile Swift source files
[... bunch of stuff referring to my new target and the viewcontroller ...]
<unknown>:0: error: missing required module 'CLibreSSL'
I cannot "Import CLibreSSL" into my viewcontroller (no autocomplete recognition). I notice that when I go to the MongoKitten-related source files, they do recognize CLibreSSL successfully in their import statements. I can even delete them and retype with successful autocompletion.
Question
I realize I probably need to do something additional when I make a new target like I did, and it probably has something to do with the search paths, but I've tried a lot of stuff and the result has not changed. Can someone please tell me how to resolve this (and please don't assume too much knowledge on my part as I find this stuff confusing)?
Please let me know if you need more information. Thank you