Where does Swift look for modules (frameworks)

I've created a simple Swift module, built as an Xcode framework.

I have a Swift script (text file starting with #! /usr/bin/swift) that imports my module (import moduleName).

The question is, where does Swift look for that framework?

I can force the issue by adding "-F <directory containing the framework>" to the command line, but I don't really want to hard-code the specific path into my script.

I understand that I could put the framework into /Library/Frameworks, but this is just a personal hack, not that needs to be exposed at the system level.

Are there user-level directories that Swift will also look in by default? Is there an environment variable I can define?
Where does Swift look for modules (frameworks)
 
 
Q