cocoapods-art icon indicating copy to clipboard operation
cocoapods-art copied to clipboard

Deploy to local repository but depends on public pods

Open seanliu1 opened this issue 6 years ago • 1 comments

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?

seanliu1 avatar Jun 02 '19 04:06 seanliu1

I believe you should just put in your Podfile:

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

lursk avatar Jun 04 '19 11:06 lursk