[英]Uninstall/remove Carthage from iOS/Xcode project?
Here is a link to Carthage
:这是
Carthage
的链接:
https://github.com/Carthage/Carthage https://github.com/Carthage/Carthage
It additionally adds some changes in project files so I can simply remove extra files/folders and it will work but I can't use Carthage
in future again because of some errors.它还在项目文件中添加了一些更改,因此我可以简单地删除额外的文件/文件夹,它会起作用,但由于某些错误,我将来无法再次使用
Carthage
。
And of course there is no concrete instruction how to do it on its official page.当然,在其官方页面上没有具体说明如何操作。
In Finder, delete these files and directory from your project's root folder:在 Finder 中,从项目的根文件夹中删除这些文件和目录:
Cartfile Cartfile.resolved Carthage/
In Xcode, delete the framework item in the project navigator.在 Xcode 中,删除项目导航器中的框架项。
In Xcode > project Target > Build Phases tab ( illustration ), delete the carthage copy-frameworks
Run Script (if you had previously added it).在 Xcode > project Target > Build Phases 选项卡(插图)中,删除
carthage copy-frameworks
Run Script(如果您之前添加了它)。
You can always download the framework you need from github and add it back in manually.您可以随时从 github 下载您需要的框架,然后手动重新添加。 (Or follow @tfrank377's answer).
(或按照@tfrank377 的回答)。
Removing Carthage has actually been pretty easy for me.删除迦太基对我来说实际上很容易。
copy-frameworks
run script put in place to keep your Carthage frameworks up to date.copy-frameworks
运行脚本。 Simply click the x in the top right You should always be able to add Carthage back if you want, but these steps should remove it from a particular Xcode project, while keeping the frameworks you want.如果需要,您应该始终能够重新添加 Carthage,但是这些步骤应该将它从特定的 Xcode 项目中删除,同时保留您想要的框架。
I have almost spent a week and now can say to remove Carthage safely and without any side effects there are following step by step process我几乎花了一个星期,现在可以说安全地移除迦太基,没有任何副作用,有以下一步一步的过程
Delete all of these and again clean and build your project.删除所有这些并再次清理并构建您的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.