lib/gym/detect_values.rb in gym-0.3.0 vs lib/gym/detect_values.rb in gym-0.3.1
- old
+ new
@@ -127,10 +127,12 @@
# Detects the available configurations (e.g. Debug, Release)
def self.detect_configuration
config = Gym.config
configurations = Gym.project.configurations
+ return if configurations.count == 0 # this is an optional value anyway
+
if config[:configuration]
# Verify the configuration is available
unless configurations.include?(config[:configuration])
Helper.log.error "Couldn't find specified configuration '#{config[:configuration]}'.".red
config[:configuration] = nil
@@ -140,10 +142,9 @@
# Usually we want `Release`
# We prefer `Release` to export the DSYM file as well
config[:configuration] ||= "Release" if configurations.include?("Release")
return if config[:configuration].to_s.length > 0
- return if configurations.count == 0 # this is an optional value anyway
if configurations.count == 1
config[:configuration] = configurations.last
else
if Helper.is_ci?