如何添加神器?我在使用 pod repo-art add 命令时遇到错误

问题描述

我正在尝试使用以下命令添加工件

pod repo-art add [artifactory name] "url"

但我收到以下错误

[!] Error getting the index from Artifactory at: 'url' : undefined local variable or method `user_agent_argument' for #<Pod::Downloader::Http:0x00007f9d3faebdf0>

请帮忙!

解决方法

尝试删除 ~/.repos 中的现有存储库。可可豆路径

,

您需要安装 cocoapods-art 插件以将 CocoaPods 包从 Artifactory 供应到 pod 命令行工具。您需要确保的第一件事是安装此插件。它是一个 Ruby gem,您的机器应该安装了最新的 Ruby。使用以下命令安装 gem cocoapods-art:

> gem install cocoapods-art

然后,您需要使用

将 Artifactory 存储库的规格添加到您的机器中

pod repo-art add <name> <url>