How to add local Swift Package as dependency?

In my personal experience drag and drop no longer works.

On Xcode 15 (could be even earlier) you can add a local dependency by:

  1. Go to File > Add Package Dependencies
  2. Press the “Add local” button at the button of the window
  3. Choose the folder containing the package

Feedback: FB13306789

I wish the documentation Editing a package dependency as a local package | Apple Developer Documentation is updated to mention the above mentioned steps.

3 Likes