class Jumpstarter::Xcode::DuplicateScheme

Public Instance Methods

run!() click to toggle source
# File lib/jumpstarter_core/xcode.rb, line 18
def run!()
    existing_scheme_path = @original_shared ? Xcodeproj::XCScheme.shared_data_dir(@proj_path) : Xcodeproj::XCScheme.user_data_dir(@proj_path)
    existing_scheme = "#{existing_scheme_path}/#{@original_scheme_name}.xcscheme"
    new_scheme = Xcodeproj::XCScheme.new(existing_scheme)
    new_scheme.save_as(@proj_path, @new_scheme_name, @new_shared)
    return true
end