Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall/remove Carthage from iOS/Xcode project?

Here is a link to 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.

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

like image 912
Vyachaslav Gerchicov Avatar asked Aug 19 '15 09:08

Vyachaslav Gerchicov


People also ask

How do I add Carthage to iOS project?

Installing Carthage There are two ways to install this tool: Download and run a . pkg installer for the latest release. Use the Homebrew package manager.


1 Answers

To completely remove Carthage and its frameworks from project:

  1. In Finder, delete these files and directory from your project's root folder:

     Cartfile  Cartfile.resolved  Carthage/ 
  2. In Xcode, delete the framework item in the project navigator.

  3. In Xcode > project Target > Build Phases tab (illustration), delete the carthage copy-frameworks Run Script (if you had previously added it).

You can always download the framework you need from github and add it back in manually. (Or follow @tfrank377's answer).

See also

  • Carthage Tutorial: Getting Started
  • Carthage documentation
like image 195
Suragch Avatar answered Oct 14 '22 09:10

Suragch