Uninstall/remove Carthage from iOS/xCode project?

Vyachaslav Gerchicov picture Vyachaslav Gerchicov · Aug 19, 2015 · Viewed 17.9k times · Source

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.

Answer

Suragch picture Suragch · Apr 23, 2016

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