lib/gym/detect_values.rb in gym-1.9.0 vs lib/gym/detect_values.rb in gym-1.10.0
- old
+ new
@@ -22,10 +22,11 @@
config[:use_legacy_build_api] = true if Xcode.pre_7?
detect_scheme
detect_platform # we can only do that *after* we have the scheme
detect_configuration
+ detect_toolchain
config[:output_name] ||= Gym.project.app_name
return config
end
@@ -84,9 +85,19 @@
# Verify the configuration is available
unless configurations.include?(config[:configuration])
UI.error "Couldn't find specified configuration '#{config[:configuration]}'."
config[:configuration] = nil
end
+ end
+ end
+
+ # The toolchain parameter is used if you don't use the default toolchain of Xcode (e.g. Swift 2.3 with Xcode 8)
+ def self.detect_toolchain
+ return unless Gym.config[:toolchain]
+
+ # Convert the aliases to the full string to make it easier for the user #justfastlanethings
+ if Gym.config[:toolchain].to_s == "swift_2_3"
+ Gym.config[:toolchain] = "com.apple.dt.toolchain.Swift_2_3"
end
end
end
end