简体   繁体   English

如何从 XCode 中删除 Swift Package?

[英]How to Delete a Swift Package from XCode?

I want to delete swift package, but the delete action is disabled.我想删除 swift package,但删除操作被禁用。 So, how can I do?那么,我该怎么办?

无法删除包裹图片

It is not about the Xcode 12. As you realized your folder is red .这与 Xcode 12 无关。当您意识到您的文件夹是红色的时。 Probably you removed this folder from the target is supposed to be referenced from here..可能您从应该从此处引用的目标中删除了此文件夹..

In other words Xcode can't see this folder.换句话说 Xcode 看不到这个文件夹。 That is why your delete button disabled.这就是您的删除按钮被禁用的原因。 Just delete from target and restart the Xcode so it will be removed.只需从目标中删除并重新启动 Xcode 即可将其删除。

Click your project > Swift Packages and click - as below单击您的项目 > Swift Packages 并单击 -如下

在此处输入图像描述

  1. In your project navigator (the left sidebar), click on your xcodeproj (the one with the blue icon).在您的项目导航器(左侧边栏)中,单击您的xcodeproj (带有蓝色图标的那个)。
  2. In your xcodeproj , click on your project, then click on your project.在您的xcodeproj中,单击您的项目,然后单击您的项目。 You should be able to manage your packages under the "Swift Packages" section.您应该能够在“Swift Packages”部分下管理您的包。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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