jfrog / cocoapods-art

CocoaPods Plugin to work against Artifactory Repository
Apache License 2.0
58 stars 28 forks source link

Deploy to local repository but depends on public pods #29

Open seanliu1 opened 5 years ago

seanliu1 commented 5 years ago

I have a locale repository. My private pods depends on other public pods

spec.dependency 'SwiftProtobuf', '~> 1.1.1' When I run pod install

!] CocoaPods could not find compatible versions for pod "SwiftProtobuf":
  In snapshot (Podfile.lock):
    SwiftProtobuf (from `https://github.com/sliu1/swift-protobuf`, commit `db7ae5fe9651e360d90d24e53a8be7c6834dcf5a`)

  In Podfile:
    SwiftProtobuf (from `https://github.com/sliu1/swift-protobuf`, commit `db7ae5fe9651e360d90d24e53a8be7c6834dcf5a`)

    Test was resolved to 0.0.1, which depends on
      SwiftProtobuf (~> 1.1.1)

How can I specify source of dependency?

lursk commented 5 years ago

I believe you should just put in your Podfile:

plugin 'cocoapods-art', :sources => [
  'master', '<<your local repo name>>'
]