lib/gym/options.rb in gym-1.4.0 vs lib/gym/options.rb in gym-1.5.0
- old
+ new
@@ -16,24 +16,24 @@
env_name: "GYM_WORKSPACE",
optional: true,
description: "Path the workspace file",
verify_block: proc do |value|
v = File.expand_path(value.to_s)
- raise "Workspace file not found at path '#{v}'".red unless File.exist?(v)
- raise "Workspace file invalid".red unless File.directory?(v)
- raise "Workspace file is not a workspace, must end with .xcworkspace".red unless v.include?(".xcworkspace")
+ UI.user_error!("Workspace file not found at path '#{v}'") unless File.exist?(v)
+ UI.user_error!("Workspace file invalid") unless File.directory?(v)
+ UI.user_error!("Workspace file is not a workspace, must end with .xcworkspace") unless v.include?(".xcworkspace")
end),
FastlaneCore::ConfigItem.new(key: :project,
short_option: "-p",
optional: true,
env_name: "GYM_PROJECT",
description: "Path the project file",
verify_block: proc do |value|
v = File.expand_path(value.to_s)
- raise "Project file not found at path '#{v}'".red unless File.exist?(v)
- raise "Project file invalid".red unless File.directory?(v)
- raise "Project file is not a project file, must end with .xcodeproj".red unless v.include?(".xcodeproj")
+ UI.user_error!("Project file not found at path '#{v}'") unless File.exist?(v)
+ UI.user_error!("Project file invalid") unless File.directory?(v)
+ UI.user_error!("Project file is not a project file, must end with .xcodeproj") unless v.include?(".xcodeproj")
end),
FastlaneCore::ConfigItem.new(key: :scheme,
short_option: "-s",
optional: true,
env_name: "GYM_SCHEME",
@@ -101,19 +101,30 @@
description: "How should gym export the archive?",
is_string: true,
optional: true,
verify_block: proc do |value|
av = %w(app-store ad-hoc package enterprise development developer-id)
- raise "Unsupported export_method, must be: #{av}" unless av.include?(value)
+ UI.user_error!("Unsupported export_method, must be: #{av}") unless av.include?(value)
end),
# Very optional
FastlaneCore::ConfigItem.new(key: :archive_path,
short_option: "-b",
env_name: "GYM_ARCHIVE_PATH",
description: "The directory in which the archive file should be stored in",
optional: true),
+ FastlaneCore::ConfigItem.new(key: :derived_data_path,
+ short_option: "-f",
+ env_name: "GYM_DERIVED_DATA_PATH",
+ description: "The directory where build products and other derived data will go",
+ optional: true),
+ FastlaneCore::ConfigItem.new(key: :result_bundle,
+ short_option: "-u",
+ env_name: "GYM_RESULT_BUNDLE",
+ is_string: false,
+ description: "Produce the result bundle describing what occurred will be placed",
+ optional: true),
FastlaneCore::ConfigItem.new(key: :buildlog_path,
short_option: "-l",
env_name: "GYM_BUILDLOG_PATH",
description: "The directory where to store the build log",
default_value: "~/Library/Logs/gym"),
@@ -126,11 +137,11 @@
short_option: "-e",
env_name: "GYM_PROVISIONING_PROFILE_PATH",
description: "The path to the provisioning profile (optional)",
optional: true,
verify_block: proc do |value|
- raise "Provisioning profile not found at path '#{File.expand_path(value)}'".red unless File.exist?(value)
+ UI.user_error!("Provisioning profile not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :destination,
short_option: "-d",
env_name: "GYM_DESTINATION",
description: "Use a custom destination for building the app",
@@ -149,10 +160,10 @@
short_option: "-y",
env_name: "GYM_XCCONFIG",
description: "Use an extra XCCONFIG file to build your app",
optional: true,
verify_block: proc do |value|
- raise "File not found at path '#{File.expand_path(value)}'".red unless File.exist?(value)
+ UI.user_error!("File not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :suppress_xcode_output,
short_option: "-r",
env_name: "SUPPRESS_OUTPUT",
description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",