We use Fastlane for our App build and we want to be able to do a consistent staging build on our CI server or on a local machine.
Since we publish all builds on Hockeyapp we thought about retrieving the highest build number for our app from the Hockeyapp API and then increase this by one.
How do I get access to the build number from Fastlane?