Loading...

How to remove a Swift package from a project in Xcode?

question swift xcode
Ram Patra Published on August 12, 2020
Version - Xcode 11.0+

If you go to Xcode > File > Swift Packages, you can see options to add a new Swift package, update them, reset caches, and resolve package versions. However, you do not see an option to remove a particular Swift package.

To remove a package, click on the project on the left and then click on your app under Project on the right. After this, click on Swift Packages on the extreme right. Now, you should see all your Swift packages. You can click on a specific package and hit the - button at the bottom to remove it.

Ram Patra Published on August 12, 2020
Image placeholder

Keep reading

If this article was helpful, others might be too

question macOS swift August 6, 2020 How to keep an app's window always on top of others in Swift?

Before launching the window, just use the appropriate window level, and you’re done.

question swift November 17, 2023 How to loop through an array of structs in Swift?

Looping through an array of structs in Swift is straightforward and can be done in several ways depending on what you need to achieve. Here’s how to do it:

June 7, 2020 How to add Global Key Shortcuts to your macOS app using MASShortcut

Adding Global Keyboard Shortcuts to your macOS app can be a pain as there isn’t a Cocoa API for the same. You would have to rely on the old, most of which are deprecated, Carbon API.