tencent cloud


CocoaPods Repository

Last updated: 2022-03-30 10:08:16

    This document describes how to store CocoaPods artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.

    Open CODING-AR

    1. Log in to the CODING Console and click Use Now to go to CODING page.
    2. Click in the upper-right corner to open the project list page and click a project icon to open the project.
    3. In the menu on the left, click Artifact Management.



    Before you begin:

    • Install CocoaPods.
    • Create an artifact repository (see Basic Operations).
    • Select CocoaPods as the repository type.

    Install CocoaPods

    Run either of the following commands to install CocoaPods.

    $ sudo gem install cocoapods
    -- or
    $ brew install cocoapods

    Create a Demo Project

    This section describes how to quickly create a demo CocoaPods artifact. You can skip this section if you are familiar with CocoaPods artifacts.

    Run the following command in a directory and select a template as needed when asked.

    pod lib create <custom pod="" name="">
    The sample CocoaPods code will be cloned from GitHub to your local machine.

    Configure Authentication Information

    Install the CODING CocoaPods plugin.

    sudo gem install cocoapods-coding-ar
    You can select manual or automatic configuration. Automatic configuration is used in the following example. Click **Generate configuration from access token** in "Guide". A personal token will be generated as your access credential. You can manage your personal token in **Personal Account Settings** > **Access Token**. Copy the commands to your `~/.netrc` file. If this file does not exist, run `vim ~/.netrc` to create it and then copy the commands.

    Push an Artifact

    Run the commands in the guide.

    Pull an Artifact

    Pull a specific CocoaPods artifact by referring to the specific guide.

    1. Modify the Podfile.
      source '<repository url="" in="" the="" guide="">'
      target 'MyApp' do
      pod '<artifact name="">', '~> <version>'
    2. Run the pull command.
      pod install
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support