# How to add local Swift Package as dependency?

**URL:** <https://forums.swift.org/t/how-to-add-local-swift-package-as-dependency/26457>\
**Category:** Using Swift\
**Created:** [June 29, 2019, 4:07pm UTC](https://forums.swift.org/t/how-to-add-local-swift-package-as-dependency/26457 "2019-06-29T16:07:04Z")\
**Posts on this page:** 1\
**Showing post:** 48

<div class="post-metadata">

**Author:** ![somu](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@somu](https://forums.swift.org/u/somu)\
**Post date:** [October 28, 2023, 2:15am UTC](https://forums.swift.org/t/how-to-add-local-swift-package-as-dependency/26457/48 "2023-10-28T02:15:05Z")

</div>

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](https://developer.apple.com/documentation/xcode/editing-a-package-dependency-as-a-local-package) is updated to mention the above mentioned steps.

---

_[View the full topic](https://forums.swift.org/t/how-to-add-local-swift-package-as-dependency/26457)._
