Wie erstelle ich eine CocoaPods podspec, die eine Abhängigkeit außerhalb der Spezifikationen hat?

Habe ich eine öffentliche Gabel von einer Bibliothek, die bereits existiert, CocoaPods/Specs. Im Podfile, kann ich auf diese Gabel-pod, indem Sie das tun:

pod 'CoolLibrary', :git => '[email protected]:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890'

Ich habe versucht, dies in meinem MyLibrary.podspec:

s.dependency 'CoolLibrary', :git => '[email protected]:myname/CoolLibrary-Forked.git', :commit => 'abcdef1234567890abcdef1234567890'

Bekomme aber folgende Fehlermeldung:

-> MyLibrary.podspec
 - ERROR | The specification defined in `MyLibrary.podspec` could not be loaded.


[!] Invalid `MyLibrary.podspec` file: [!] Unsupported version requirements. Updating CocoaPods might fix the issue.

Ist es möglich, an einer Abhängigkeit in einer .podspec in dieser Weise (D. H. für eine Hülse, hat eine podspec, aber das ist nicht in CocoaPods/Specs)?

InformationsquelleAutor der Frage Nick Forge | 2014-03-17

Schreibe einen Kommentar