Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods equivalent to Maven SNAPSHOT builds

Tags:

cocoapods

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?

like image 329
chinabuffet Avatar asked Oct 22 '15 01:10

chinabuffet


1 Answers

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.

like image 173
Adil Hussain Avatar answered Nov 09 '22 22:11

Adil Hussain