Skip to content

Instantly share code, notes, and snippets.

@henteko
Created August 18, 2016 13:21
Show Gist options
  • Save henteko/5e88e0b88d0c17cce0ad2a8936a3f4cc to your computer and use it in GitHub Desktop.
Save henteko/5e88e0b88d0c17cce0ad2a8936a3f4cc to your computer and use it in GitHub Desktop.
source "https://rubygems.org"
gem 'gym', '~> 1.7.0'
require 'gym'
EXPORT_METHOD = 'ad-hoc' # ad-hoc or enterprise
WORKSPACE = '/path/to/ios-app/app.xcodeproj' # cocoapodsを使ってる場合はapp.xcworkspace
CONFIGURATION = 'Release'
SCHEME = 'target_scheme'
CODESIGNING_IDENTITY = 'iPhone Distribution: HOGE (xxxxxxxxx)'
def build
values = {
export_method: EXPORT_METHOD,
workspace: WORKSPACE,
configuration: CONFIGURATION,
scheme: SCHEME,
codesigning_identity: CODESIGNING_IDENTITY
}
v = FastlaneCore::Configuration.create(Gym::Options.available_options, values)
File.expand_path(Gym::Manager.new.work(v))
end
puts "Output ipa path: #{build}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment