How to add frameworks to Xcode projects using Carthage?

We can include third party frameworks in our Xcode project using Carthage. The steps are as follows:

  1. Open up terminal by pressing <command + space>
  2. Now copy the file/folder path in which our xcode project is present .
  3. In terminal type cd and then the file path.
  4. Now type: touch Cartfile . This will create new cartfile inside our project folder.
  5. Now type: open -a Xcode Cartfile. Tis will open the cartfile just created in our project.
  6. Now copy paste the code for installing the specific framework..for example github “….”. Save the file.
  7. Now type the following command in terminal: carthage update –platform iOS and hit enter.
  8. Our framework will be installed.

 

 

 

Leave a Reply