Skip to content

Demo produces this error: [!] Unable to find a specification for `A` depended upon by `B`

Notifications You must be signed in to change notification settings

qe0/PrivatePodBugDemo

Repository files navigation

Explanation

For some reason I need private local pods (DevPods) that contains in app.

Sometimes it has many pods that contains another pods which shouldn't be included in entire application but only in child pods.

pod install with only pod 'MainPod', :path => 'DevPods/MainPod' in ./Podfile produces this error:

[!] Unable to find a specification for `ChildPod` depended upon by `MainPod

Contents

What I want to:

I want to avoid of including subpods that not used by app but used by another subpods It's too complicated when you are using 10+ local pods that uses their own local pods.

PrivatePodBugDemo (App)
└─ MainPod
   └─ ChildPod

But now I have to do everytime this thing:

PrivatePodBugDemo (App)
├─ ChildPod
└─ MainPod
   └─ ChildPod

Podfiles:

# ./Podfile
platform :ios, '13.0'

target 'PrivatePodBugDemo' do
  use_frameworks!

  # pod 'ChildPod', :path => 'DevPods/ChildPod' # This is the problem when there are too much pods
  pod 'MainPod', :path => 'DevPods/MainPod'
end
# ./DevPods/MainPod/Podfile
platform :ios, '13.0'

target 'MainPod' do
  use_frameworks!

  pod 'ChildPod', :path => '../ChildPod'
end
# ./DevPods/ChildPod/Podfile
platform :ios, '13.0'

target 'MainPod' do
  use_frameworks!

end

Podspecs:

MainPod.podspec

ChildPod.podspec

About

Demo produces this error: [!] Unable to find a specification for `A` depended upon by `B`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published