Dino Angelov Software Architect

Remove a package dependency added via Swift Package Manager in Xcode 14.0 beta 4

• 1 minute read

I was recently working on v2 of Rest, a macOS & Windows app I built some years ago. It’s a break reminder app useful if you spend a lot of time on the computer.

I had some trouble getting sound to play reliably on macOS Ventura’s beta (13.0 Beta 22A5311f), so I decided to try and install SwiftySound. Immediately ran into a dead end since it doesn’t support loading from Asset catalogs, so I decided to remove it and look for a solution elsewhere.

But – it would seem Xcode won’t allow me to easily remove it.

Screenshot showing Xcode with a disabled 'Delete' option for a dependency

Turns out, if you go to your project’s Build Phases and try to remove it from your linked libraries, it will ask you to confirm if you want to remove it as a dependency as well. Problem solved.

Screenshot showing Xcode with a disabled 'Delete' option for a dependency

Screenshot showing Xcode with a disabled 'Delete' option for a dependency