简体   繁体   中英

How to Delete a Swift Package from XCode?

I want to delete swift package, but the delete action is disabled. So, how can I do?

无法删除包裹图片

It is not about the Xcode 12. As you realized your folder is red . Probably you removed this folder from the target is supposed to be referenced from here..

In other words Xcode can't see this folder. That is why your delete button disabled. Just delete from target and restart the Xcode so it will be removed.

Click your project > Swift Packages and click - as below

在此处输入图像描述

  1. In your project navigator (the left sidebar), click on your xcodeproj (the one with the blue icon).
  2. In your xcodeproj , click on your project, then click on your project. You should be able to manage your packages under the "Swift Packages" section.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM