从iOS/xCode项目卸载/删除Carthage? [英] Uninstall/remove Carthage from iOS/xCode project?

查看:495
本文介绍了从iOS/xCode项目卸载/删除Carthage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是Carthage的链接:

https://github.com/Carthage/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.

当然,在其官方页面上也没有具体的说明.

And of course there is no concrete instruction how to do it on its official page.

推荐答案

对我来说,卸下迦太基实际上很容易.

Removing Carthage has actually been pretty easy for me.

  1. 我只是将框架从Carthage文件夹复制到主项目文件夹中的frameworks文件夹中.
  2. 确保将它们从新位置添加回Xcode项目.
  3. 在查找导航器"中搜索整个项目,以获取对迦太基的引用.我发现的唯一内容是在构建设置"下的框架"搜索路径中.只要您有对非Carthage框架文件夹的引用,就应该能够删除Carthage引用.
  4. 最后,删除为保持Carthage框架最新而放置的copy-frameworks运行脚本.只需单击右上角的x
  1. I simply copy my frameworks from the Carthage folder into a frameworks folder I have in my main project folder.
  2. Make sure they are added back to the Xcode project from their new location.
  3. Search the entire project in Find navigator for references to Carthage. The only ones I found were in the Frameworks search paths under Build Settings. As long as you have a reference to your non-Carthage frameworks folder, you should be able to delete the Carthage references.
  4. Lastly, remove the copy-frameworks run script put in place to keep your Carthage frameworks up to date. Simply click the x in the top right

如果需要,您应该始终能够重新添加Carthage,但是这些步骤应该将其从特定的Xcode项目中删除,同时保留所需的框架.

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.

这篇关于从iOS/xCode项目卸载/删除Carthage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆