Skip to content

Instantly share code, notes, and snippets.

@xotahal
Created March 19, 2019 03:41
Show Gist options
  • Save xotahal/304647df70b6836810b399308ee546a4 to your computer and use it in GitHub Desktop.
Save xotahal/304647df70b6836810b399308ee546a4 to your computer and use it in GitHub Desktop.
desc "Build a new version of iOS App"
lane :build do |options|
next_version = lane_context[SharedValues::RELEASE_NEXT_VERSION]
# pod install
cocoapods(podfile: 'ios')
# pod install & yarn just
# check that .lock files were not changed
ensure_git_status_clean
# code signing
match(type: "appstore")
# Increment major version in XCode project
increment_version_number(version_number: next_version)
# Increment build number
increment_build_number_in_plist(build_number: build_number)
# Build app
gym(scheme: options[:scheme])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment