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.

Presentify

Take your presentation to the next level.

FaceScreen

Put your face and name on your screen.

ToDoBar

Your to-dos on your menu bar.

Ram Patra Published on August 12, 2020
Image placeholder

Keep reading

If this article was helpful, others might be too

question macOS swift August 14, 2020 How to quit or close an app in macOS using Swift?

You can quit or exit an app with:NSApp.terminate(self)

question swift March 14, 2021 How to generate a random number in Swift?

You can use the random method in Int struct for this.

question swift August 9, 2020 How to iterate an array in reverse in Swift?

From Swift 5.0, you can use any of the following approaches to iterate an array in reverse.