Pod Repo Push在iOS中不起作用

问题描述 投票:0回答:2

我已经创建了示例CocoaPod文件并且它成功运行,现在在最后阶段,当我正在做Pod Repo Push它显示我错误。以下是我得到的命令和错误。

Pod::Spec.new do |s|
s.name         = "IDFVSample"
s.version      = "1.0.0"
s.summary      = "A short description of VFIDOneFramework. Please check this awesome work from me you will like it"
s.description  = "This is the best tutorial. Recently given presentation in the world great forum for the member."
s.homepage     = "https://github.com/kashiftriffort/IDFVSample"
s.license      = "MIT"
s.author       = { "KJilani" => "[email protected]" }
s.platform     = :ios, "9.0"
s.source       = { :git => "https://github.com/kashiftriffort/IDFVSample.git", :tag => "1.0.0" }
s.source_files = "IDFVSample/IDFVSample/IDFVSample.swift"
s.dependency 'Firebase/Core'
end

pod repo push IDFVPodSpecs IDFVSample.podspec --allow-warnings

Validating spec
Cloning spec repo `-1` from ``
[!] Unable to add a source with url `` named `-1`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
ios swift cocoapods
2个回答
0
投票

看起来您还没有添加包含您的规格的repo。做类似的事情:

pod repo add IDFVSample <git source>

0
投票

IDFVSample.podspec移动到存储库的根目录(已经存在LICENSE和README文件)

© www.soinside.com 2019 - 2024. All rights reserved.