Deploy CocoaPods Packages

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Once you connect a CocoaPods client to Artifactory, you can deploy pods to the specified repositories in Artifactory using the Web UI or REST API.Deploying Artifacts

A pod is a tar.gz file that contains your project code as well as a .podspec or .podspec.json file describing the package metadata.

Supported File Types

Artifactory CocoaPods local repositories only support pods archived as tar.gz files.

To deploy pods:

From the root directory of the package, run this command to deploy the package to your Artifactory repository:

curl -L -u<USERNAME>:<AUTH> "https://[JFrogPlatformURL]/artifactory/<REPO_NAME>/<DESTINATION_PATH>" -T <PATH_TO_FILE>

Where:

  • <USERNAME>: Your Artifactory username

  • <AUTH>: Your Artifactory identity token

  • [JFrogPlatformURL]: Your organization's Artifactory URL

  • <REPO_NAME>: The name of the target repository

  • <DESTINATION_PATH>: The destination path of the package within the target repository

  • <PATH_TO_FILE>: The path to the package on your local machine

For example:

curl -L -ujeffry:51HnvD0A1g2q3n4b5F6g7H8j9K0l1m2N3o4P5q6R7s8T9u0V1w2X3y4 "https://company.jfrog.io/artifactory/cocoapods-local/AcmeAnalytics/2.5.0/AcmeAnalytics-2.5.0.tar.gz" -T ~/Downloads/2.5.0.tar.gz

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.