Swift Packages..how do they work?

Hi there,


I'm writing a swift 5.1 iphone application in xcode 11.2, and want to pull in some swift packages (notably SwiftPhoenixClient in particular). I add the package via the Project -> Swift Packages interface. The package/project is downloaded from github, its dependencies too. The little little package icon shows up in the file explorer, pleasingly.


The problem: None of the classes from the packages are available in my application. Anything I try to import dies with a "no such module" error. Clearly, my deps are not available to me, despite being in the project explorer.


Is there another step? I don't see xcode doing anything to compile either of the packages. Do I have to go in and somehow manually compile them?


Notably, going to target->build phase area, i see "Dependencies (0 items). Trying to add my dependencies here doesn't work (despite the dependency showing up in the list interface, though they are un-selectable).


This is a vanilla iphone app, not using anything like cocoapods or carthage or whatnot.


Regards.

-pullingmyhairout

Did you do an option-clean build folder ?


If not enough, in some cases you need to prefix the names from the package with the package name:

Package.aFunc

Swift Packages..how do they work?
 
 
Q