lib/gym/detect_values.rb in gym-0.4.2 vs lib/gym/detect_values.rb in gym-0.4.3
- old
+ new
@@ -15,19 +15,19 @@
if config[:workspace].to_s.length == 0 and config[:project].to_s.length == 0
raise "No project/workspace found in the current directory.".red
end
Gym.project = Project.new(config)
- detect_platform
detect_provisioning_profile
# Go into the project's folder
Dir.chdir(File.expand_path("..", Gym.project.path)) do
config.load_configuration_file(Gym.gymfile_name)
end
detect_scheme
+ detect_platform # we can only do that *after* we have the scheme
detect_configuration
config[:output_name] ||= Gym.project.app_name
return config
@@ -120,10 +120,12 @@
else
puts "Select Scheme: "
config[:scheme] = choose(*(proj_schemes))
end
else
- raise "Couldn't find any schemes in this project".red
+ Helper.log.error "Couldn't find any schemes in this project, make sure that the scheme is shared if you are using a workspace".red
+
+ raise "No Schemes found".red
end
end
# Is it an iOS device or a Mac?
def self.detect_platform