lib/gym/detect_values.rb in gym-1.4.0 vs lib/gym/detect_values.rb in gym-1.5.0
- old
+ new
@@ -40,11 +40,11 @@
Dir.chdir(File.expand_path("..", Gym.project.path)) do
profiles = Dir["*.mobileprovision"]
if profiles.count == 1
profile = File.expand_path(profiles.last)
elsif profiles.count > 1
- puts "Found more than one provisioning profile in the project directory:"
+ UI.message "Found more than one provisioning profile in the project directory:"
profile = choose(*(profiles))
end
Gym.config[:provisioning_profile_path] = profile
end
@@ -60,10 +60,16 @@
end
# Is it an iOS device or a Mac?
def self.detect_platform
return if Gym.config[:destination]
- platform = Gym.project.mac? ? "OS X" : "iOS" # either `iOS` or `OS X`
+ platform = if Gym.project.mac?
+ "OS X"
+ elsif Gym.project.tvos?
+ "tvOS"
+ else
+ "iOS"
+ end
Gym.config[:destination] = "generic/platform=#{platform}"
end
# Detects the available configurations (e.g. Debug, Release)