Use CocoaPods CDN for Remote Repositories

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

To use an Artifactory remote repository with CocoaPods, do the following:

  1. Log into CocoaPods as specified in your standard .netrc file:

    Note

    Make sure to replace the placeholders in bold with your own JFrog machine, username, and password

    machine <MACHINE>
    localhost <YOUR_JFROG_USERNAME>
    password <YOUR_JFROG_PASSWORD>

    For example:

    machine localhost
    localhost admin
    password AKCp2TfQM58F8FTkXo8qSJ8NymwJivmagefBqoJeEBQLSHCZusEH6Z2dmhS1siSxZTHoPPyUWJHDhLGJ45kJKH2jHKWE7Sk
  2. To add an Artifactory CDN repository, run the following command:

    Note

    Make sure to replace the placeholders in bold with your own JFrog domain URL and repository.

    pod repo add-cdn <REPOSITORY_NAME> "<YOUR_JFROG_DOMAIN>/api/pods/<REPOSITORY_PATH>"

    For example:

    pod repo add-cdn coco-remote "https://localhost:8080/artifactory/api/pods/coco-remote"
  3. (Optional) By default, the CDN URL field points to the public registry https://cdn.cocoapods.org/. To use a different URL, define it in the CDN URL field, or modify the podsCdnUrl parameter via REST API.

    cocoapods_configuration_url.png