Is there an equivalent concept in CocoaPods to SNAPSHOT builds in Maven?
I have a private podspec repo setup, and I'd like to publish a new development version after each CI run. For my Android builds, I have an Artifactory server setup, where the CI publishes a SNAPSHOT build after each run (only keeping the most recent 5). Is there an easy/recommended way of accomplishing this with Cocoapods?
If you refer to the CocoaPods Versioning Specifics section of the Making a CocoaPod document, you'll see that this is supported. That document gives an example of specifying a pre-release version as 1.2-beta3
. However, if you look into the Prerelease Gems section of the RubyGems Patterns document (which the Making a CocoaPod document links to), you'll see that the recommendation is to specify the pre-release version as 1.2.beta.3
. I'm sure both work but you can easily validate this by creating a podspec file and running the pod spec lint MyPrivateLibrary.podspec
command against it. If the version name you've chosen is good, then you'll see a "MyPrivateLibrary.podspec passed validation"
message when the lint command completes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With