CocoaPods/CocoaPods
View on GitHubcocoapods cannot find dependency in secondary source
Open
#10,961 opened on Sep 21, 2021
help wanteds2:confirmedt2:defect
Repository metrics
- Stars
- (14,815 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Hello,
I'm using v1.11.2.
I have the following Podfile, the Tanker pod depends on POSInputStreamLibrary which is available on the Cocoapods CDN:
source 'https://cdn.cocoapods.org/'
platform :ios, '9.0'
target 'CompatTests' do
use_frameworks!
pod 'Tanker', '2.21.0', :source => 'https://github.com/TankerHQ/PodSpecs.git'
end
Tanker is on a secondary source. Running pod install --repo-update fails with the following output:
Updating local specs repositories
Analyzing dependencies
[!] Unable to find a specification for `POSInputStreamLibrary` depended upon by `Tanker`
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
If I add pod 'PromiseKit', '~> 1.7' just before the pod 'Tanker' it works!
I suspect this issue arises when having a single dependency in the Podfile.