Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Multiple Schemes in deliver
project_name = gets.chomp
if project_name == 'project_name1'
email "yourappleid@company.com"
# hide_transporter_output # remove the '#' in the beginning of the line, to hide the output while uploading
########################################
# App Metadata
########################################
# The app identifier is required
app_identifier "[Your App Identifier, e.g. at.felixkrause.app_name]"
# This folder has to include one folder for each language
# More information about automatic screenshot upload:
screenshots_path "./screenshots"
# version '1.2' # you can pass this if you want to verify the version number with the ipa file
#
# title({
# "en-US" => "Your App Name"
# })
#
# changelog({
# "en-US" => "iPhone 6 (Plus) Support"
# })
########################################
# Building and Testing
########################################
# Dynamic generation of the ipa file
# I'm using Shenzhen by Mattt, but you can use any build tool you want
# Remove the whole block if you do not want to upload an ipa file
ipa do
# system("ipa build") # build your project using Shenzhen
"./[[APP_NAME]].ipa --scheme your name" # Tell 'Deliver' where it can find the finished ipa file
end
# ipa "./latest.ipa" # this can be used, if you prefer manually building the ipa file
# unit_tests do
# system("xctool test")
# end
success do
system("say 'Successfully deployed a new version.'")
end
elsif project_name == 'other name'
# copy code here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment