Skip to content
Guillermo Ceballos edited this page Feb 19, 2014 · 1 revision

This document purposes explain how to create a new MalcomLib-iOS release. But firstly some points to take into account:

  • Every merge done in master branch could be tagged as a release, so you as a developer have to take care of any pull request you're doing against master.
  • Any change is being done under development branch, when a new release is decided to be published it's merged to master.
  • Hot fixes and minor changes could be done in custom branches and merge to master and development branches.

After this short intro we proceed to list some steps you have to take in order to make a release:

  • Have some new changes to generate a new release.
  • Update version number in some files:
    • Project file > Target "MalcomLib" > Build Settings > Versioning > Current Project Version (you can do this step in the User Interface provided by xCode)
    • MCMCore.h > MCMVersionSDK constant
    • Some changes in Malcom.podspec:
      • s.version = '<YOUR_NEW_VERSION>'
      • s.source = { :git => 'https://github.com/MyMalcom/malcom-lib-ios.git', :tag => 'v<YOUR_NEW_VERSION>' }
      • Where <YOUR_NEW_VERSION> is the version number, e.g. 2.0.11.
  • Build (run button) the scheme MalcomLib > iOS Device. This generates an .a file located on Libraries/static library/lib/libMalcomLib-ios.a which has to be pushed to GitHub because of it's the static library file.
  • Push your changes to GitHub (any branch except master) and then you need to merge to master
  • Go to releases in GitHub and mark master HEAD as a new release. Include a release note to respect best practices.
  • At this point you have completed a new release of MalcomLib-iOS but we're publishing all our releases in CocoaPods as well, so we proceed to explain how to do it.
  • We've already forked the Specs of CocoaPods in https://github.com/MyMalcom/Specs so clone this repo in your local.
  • cd Specs/Malcom and create a new folder with the version number. Copy and paste into this folder the Malcom.podspec file we have modified above this point.
  • Commit and push your changes.
  • Go to https://github.com/MyMalcom/Specs and pull request your changes against CocoaPods
  • Just wait for CocoaPods until they approve your new release.

That's it. Help free changing this document if anything is wrong or not too much clear.

Clone this wiki locally