Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • How to setup POD for your Xcode project

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 4
    Comment on it

    Below are the steps please follow them.

    1. Open Terminal

    2. Change directory to your XCode project root directory (where your ProjectName.xcodeproj file is placed).

    3. $ pod setup : (Setting up CocoaPods master repo)

    If successful, it shows : Setup completed (read-only access). So, you setup everything. Now Lets do something which is more visibleYes ! Lets install libraries in your Xcode project.

    Steps to add-remove-update libraries in pod:

    1. Open Terminal

    2. Change directory to your XCode project root directory. If your terminal is already running then no need to do this, as you are already at same path.

    3. $ touch podfile

    4. $ open -e podfile (This should open a blank text file)

    5. Add your library names in that text file. You can add new names (lib name), remove any name or change the version e.g :

    These are the SDKS

    pod AFNetworking, 0.9.1 pod Facebook-iOS-SDK pod EGOTableViewPullRefresh pod JSONKit pod MBProgressHUD pod Reachability

    NOTE: Use ( control + ) button to add single quote at both end of library name. It should be shown as straight vertical line. Without control button it will add this as a curly single quote which will give error while installation of file.

    1. Save and close this text file. Now libraries are setup and you have to install/update it.

    2. Go to your terminal again and run this command: $ pod install (to install/update these libraries in pod). You should see output similar to the following:

    Updating spec repo `master Installing AFNetworking (0.9.1).. Generating support files

    After successful downloading/installation of any single library, It will generate ProjectName.xcworkspace in your project root directory. From now use this workspace to open your project. When you open your project work space you will see Pod is also added as another Xcode project with your Xcode project. If you open Pod it will show all libraries.

    For your next project your dont need to install the cocoa pod again in your mac machine just open the terminal and setup the Pod in root directory of your Xcode project and always remember these 3 commands :

       1. $ touch podfile
       2. $ open -e podfile
       3. $ pod install
    
    Pod

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: