Class: Xcode::Builder::SchemeBuilder

Inherits:
BaseBuilder show all
Defined in:
lib/xcode/builder/scheme_builder.rb

Instance Attribute Summary

Attributes inherited from BaseBuilder

#build_path, #config, #identity, #keychain, #objroot, #profile, #sdk, #symroot, #target

Instance Method Summary collapse

Methods inherited from BaseBuilder

#app_path, #build, #build_environment, #clean, #common_environment, #configuration_build_path, #dsym_path, #dsym_zip_path, #entitlements_path, #ipa_path, #package, #product_version_basename, #sign, #test, #testflight

Constructor Details

#initialize(scheme) ⇒ SchemeBuilder

Returns a new instance of SchemeBuilder.



18
19
20
21
# File 'lib/xcode/builder/scheme_builder.rb', line 18

def initialize(scheme)
  @scheme     = scheme        
  super @scheme.build_targets.last, @scheme.build_config
end

Instance Method Details

#xcodebuildObject



23
24
25
26
27
28
# File 'lib/xcode/builder/scheme_builder.rb', line 23

def xcodebuild
  cmd = super
  cmd << @scheme.parent.to_xcodebuild_option        
  cmd << "-scheme \"#{@scheme.name}\""
  cmd
end