Skip to content

Conflict using Firestore and a Pod using gRPC-Swift as a dependency its podspec file #1067

@nshoura

Description

@nshoura

What are you trying to achieve?

Use gRPC-Swift as a dependency in a .podspec file of a Pod, let's call it X, and use X in a project where Firebase/Firestore is used as well:

Project's Podfile:

target '<Project name>' do
  use_frameworks!

  pod 'Firebase/Firestore'
  pod 'X'
end

X.podspec file:

Pod::Spec.new do |spec|
  spec.name = "X"
  spec.dependency 'gRPC-Swift', '1.0.0-alpha.21'
end

This results in the same problem mentioned in this issue.

What have you tried so far?

I have tried the solution mentioned here. However, this solution doesn't work when gRPC-Swift is used as a dependency for another pod since, in podspec files, it's only allowed to define the name and the version specifier of a Pod and it's not possible to provide a specific podspec file. Basically, the following isn't valid in a podspec file: s.dependency 'gRPC-Swift', :podspec => 'gRPC-Swift.podspec'

Metadata

Metadata

Assignees

No one assigned

    Labels

    cocoapodsRelates to CocoaPodskind/supportAdopter support requests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions