Editing a Package Dependency as a Local Package



  • I have a project that uses a remote swift package.
  • I would like to edit this package in the same project so that I can refine it based on the usage.


  • To do this I am trying to add the same package as a local package so that I can edit it.




  • When I drag and drop the cloned folder containing Package.swift into the project, I can't see any of the local package source files in the project. (see screenshot)

I have been breaking my head over it. Any help on this would be much appreciated.


  • Xcode: 13.2 (13C90) (downloaded from the developer portal not the AppStore)

Problem was that I had the Swift Package file (SamplePackage.swift) opened in a different Xcode window.


  • Close the swift package window SamplePackage.swift
  • Close and Open the SampleDemo project again and now the files show up
Terms of Service

Privacy Policy

Cookie Policy