Skip to content

Instantly share code, notes, and snippets.

@ulhas
Created March 21, 2016 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulhas/e7319d8e9630dbc22cbb to your computer and use it in GitHub Desktop.
Save ulhas/e7319d8e9630dbc22cbb to your computer and use it in GitHub Desktop.
Fastlane - private lane for 'increment framework version'
desc "Increment framework version"
private_lane :increment_framework_version do |lane|
if !lane[:framework]
raise "No framework specified!".red
end
if !lane[:version]
raise "No version specified!".red
end
framework = lane[:framework]
version = lane[:version]
increment_version_number(
xcodeproj: "#{framework}/#{framework}.xcodeproj",
version_number: version
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment