Here are the steps that worked for me on Xcode 13/14/15-beta:
- Create a package called
MyLibrary

- Create a new Project App
MyLibraryDemoinside the package directory

-
Open the project’s
.xcodeprojfile -
Go to
PROJECT>MyLibraryDemo>Package Dependenciesand press the ‘plus’ symbol

- Press
Add Localand select the directory containing your pacakge

- Go to the app’s
TARGET>General>Frameworks, Libraries and Embeded Content, and press ‘add’

- Select your package from the list

- Now you can import your
MyLibrarypackage into your example app, and edit / update your package from within you demo project.

Some Notes:
-
If your package / demo has other dependencies, and those other dependencies get updated, you may have to clear
DerivedDatabefore doing an update -
You may also have to close & re-open Xcode, especially if you’ve updated dependencies, but it still says “Cannot find package
MyLibrary“