Skip to content

Instantly share code, notes, and snippets.

@sasikiran
Last active May 22, 2016 17:09
Show Gist options
  • Save sasikiran/5546035 to your computer and use it in GitHub Desktop.
Save sasikiran/5546035 to your computer and use it in GitHub Desktop.
build-automate.rb
#
# Project name
# Automatic build configuration
# Written by Sasi kiran
# May 8, 2013
#
# Setup variables
xctool_path = "/Users/sasikiran/Documents/Samples/xctool/xctool/xctool.sh"
project_path = "Project.xcodeproj"
output_build_path = "/Users/sasikiran/Desktop/Project_Build/"
target = "Project"
scheme = "Project"
configuration = "Release"
# sdk = "iphoneos6.1"
# arch = "armv7 armv7s"
provisioning_profile_path = "/Users/sasikiran/Documents/Provisioning/provisioning.mobileprovision"
certificate_identity = "iPhone Distribution: Company name"
exec("#{xctool_path} \
-project #{project_path}\
-scheme #{scheme}\
-configuration #{configuration}\
-sdk #{sdk}\
-arch \"#{arch}\"\
build\
PROVISION_PROFILE=\"#{provisioning_profile_path}\"\
CODE_SIGN_IDENTITY=\"#{certificate_identity}\"\
CONFIGURATION_BUILD_DIR=\"#{output_build_path}\"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment