如何从 Xcode 源代码控制导航器中删除 Swift 包依赖项 [英] How to remove a Swift Package Dependency from the Xcode source control navigator
问题描述
我试用了一个软件包,但决定不使用它.所以我通过项目设置删除了相应的依赖项 ->到目前为止有效的 Swift Packagesm.关键是,相应的存储库仍列在 Source Control Navigator 中 - 在我自己的项目下方,并带有一个名为Swift Package Dependencies"的组.如何删除该存储库?当我右键单击它时,删除按钮被禁用.当我在项目中搜索相应的包时,我什么也没找到...
I tried out a package but decided not to use it. So I deleted the according dependency via Project Settings -> Swift Packagesm which worked so far. The point is, that the according repository is still listed in the Source Control Navigator - below my own project and with a group called "Swift Package Dependencies". How to remove that repository? When I right-click on it the delete button is disabled. When I search the project for the according package I don't find anything...
推荐答案
我找到了一个解决方案:文件 /Users/
仍然包含对远程包的引用.我删除了那个文件,现在源控制导航器中不再显示包的远程存储库!
I found a solution: The file /Users/<USER>/Library/Developer/Xcode/DerivedData/<APPNAME>/Blueprint.xcscmblueprint
still contained a reference to the package remote. I deleted that file and now the remote repository of the package is no longer shown in he source control navigator!
这篇关于如何从 Xcode 源代码控制导航器中删除 Swift 包依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!