class Xcodeproj::XCScheme
def save_as(project_path, name, shared = true)
- Example: Saving a scheme -
Returns:
-
(void)-
Parameters:
-
shared(Boolean) -- -
name(String) -- -
project_path(String, Pathname) --
def save_as(project_path, name, shared = true) scheme_folder_path = if shared self.class.shared_data_dir(project_path) else self.class.user_data_dir(project_path) end scheme_folder_path.mkpath scheme_path = scheme_folder_path + "#{name}.xcscheme" @file_path = scheme_path File.open(scheme_path, 'w') do |f| f.write(to_s) end end