AyaBaghdadi / install_using_carthage

IOS : How to install library using Carthage at the first time which has pod files By Steps

Home Page:https://www.youtube.com/channel/UC7554uvArdSxL4tlws7Wf8Q

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Technicalisto

How to install library using Carthage at the first time which has pod files By Steps

Pod

0 Write in Terminal cd (Your_Project_path)

1 pod init

2 pod install

3 Open open XCode project from " .xcworkspace "

Cartage

  1. Definition
From the GitHub repository’s main page for Carthage:

Carthage is intended to be the simplest way to add frameworks to your Cocoa application… Ultimately, we created Carthage because we wanted the simplest tool possible—a dependency manager that gets the job done without taking over the responsibility of Xcode, and without creating extra work for framework authors.

install cartage by Carthage.pkg

  1. Install cartage

    1.1 Installer: Download and run the Carthage.pkg file for the latest @release

  2. In terminal run & write password // for certain no error

sudo chown -R $(whoami) /usr/local/*
  1. Get Carthage by running in terminal
brew install carthage 

you shoud get this if not or get command not found or error try to install cartage in another way

' like this Image '

xcworkspace

install cartage by Homebrew

3.1 If has still error in step 3 try another way for install like using "Homebrew" write this in terminal & return to step 3 again

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

' like this Image '

xcworkspace

Result of step 3.1

' like this Image '

xcworkspace

  1. Write in Terminal cd (Your_Project_path)

  2. Create a Cartfile & open project file to show

This is project folder before this step

' like this Image '

xcworkspace

5.1 Run this in terminal

touch Cartfile

Project folder After this step

' like this Image '

xcworkspace

  1. Open created Cartfile this

' like this Image '

xcworkspace

6.1 And write in this file your dependencies you need like this & Save

github "Alamofire/Alamofire"

' like this Image '

xcworkspace

  1. Run this in terminal to install
carthage update --use-xcframeworks

' like this Image '

xcworkspace

In Project file you can find

' like this Image '

xcworkspace

Note : we will follow instruction of @Carthage Documentaion in details .

' like this Image '

xcworkspace

  1. Drag the built .xcframework bundles from Carthage/Build into the "Frameworks and Libraries" section of your application’s Xcode project.

    8.1 Open project target

    8.2 Build Phases

    8.3 Open Link Binary with library

    8.3 Click Plus

    8.4 Add Other

    8.5 Select your Project path -> Cartage Folder -> Build Folder -> select framework.xcframework you need

  2. Try in ViewController to import your library & Run your Project if Build successfully then you Done.

' like this Image '

xcworkspace

Thanks

This app is inspired by Aya Baghdadi” and copyright for @Technicalisto

About

IOS : How to install library using Carthage at the first time which has pod files By Steps

https://www.youtube.com/channel/UC7554uvArdSxL4tlws7Wf8Q


Languages

Language:Swift 93.6%Language:Ruby 6.4%