代码之家  ›  专栏  ›  技术社区  ›  Kashif Jilani

Pod回购推送在iOS中不工作

  •  1
  • Kashif Jilani  · 技术社区  · 7 年前

    我已经创建了CocoaPod示例文件,并成功运行,现在正处于最后阶段,当我执行Pod Repo时,推送它显示错误。下面是我收到的命令和错误。

    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" => "Kashif.triffort@gmail.com" }
    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`.
    
    2 回复  |  直到 7 年前
        1
  •  0
  •   Xchord    7 年前

    看起来您尚未添加包含规格的回购。 执行以下操作:

    pod repo add IDFVSample <git source>
    
        2
  •  0
  •   Taras Chernyshenko    7 年前

    移动您的 IDFVSample.podspec 到存储库的根目录(许可证和自述文件已位于其中)