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 macOS swift March 14, 2021 How to detect Escape key pressed in macOS apps?

Like Delete key, detection of Escape key press is also slightly different than detecting general key presses.

question swift xcode October 8, 2023 How to get rid of 'Result of call to function is unused' warning in Swift/Xcode?

In Swift, if you encounter a “Result of call to ‘function’ is unused” warning, it means that you’re calling a function that returns a value (typically a result type, such as Result or any other type), but you’re not doing anything with the result. To get rid of this warning, you have a few options depending on the specific situation: