Saya tidak mengerti mengapa Cocoapod tidak dapat menemukan spesifikasi pod yang saya buat saat saya menjalankannya pod install. Bisakah seseorang membantu saya mengatasi masalah ini?
Saya mendefinisikan subspec di file podspec perpustakaan saya seperti ini:
s.subspec 'mysubspec' do |c|
c.dependency 'ABC','1.0.0'
end
Dependensi ABC ini terdaftar di library Podfile:
pod 'ABC', :git => 'git@github.com:myrepo/Podspecs.git', :branch => 'xyz'
File Podspec ABC.podspecdi cabang xyz dari myrepo / Podspecs terlihat seperti ini:
Pod::Spec.new do |s|
s.name = "ABC"
s.version = "1.0.0"
s.source = { :git => "git@github.com:myrepo/Podspecs.git", :branch => "xyz" }
end
Kesalahannya adalah [!] Unable to find a specification for ABC (= 1.0.0)
Solusi: impor pod ABC sebelum mengimpor subspec dan tambahkan tag ke podspec.