Carthage builds your dependencies and provides you with binary frameworks, but you retain full control over your project structure and setup. Carthage does not automatically modify your project files or your build settings.
To install using Homebrew type below command:
$ brew install carthage
This will update homebrew if needed and then install. For Appium you need Carthage for WebDriverAgent.