lib/gym/detect_values.rb in gym-0.8.4 vs lib/gym/detect_values.rb in gym-0.8.5
- old
+ new
@@ -59,18 +59,22 @@
FastlaneCore::ProvisioningProfile.install(Gym.config[:provisioning_profile_path])
end
end
def self.detect_projects
+ return if Gym.config[:project].to_s.length > 0
+
if Gym.config[:workspace].to_s.length == 0
workspace = Dir["./*.xcworkspace"]
if workspace.count > 1
puts "Select Workspace: "
Gym.config[:workspace] = choose(*(workspace))
else
Gym.config[:workspace] = workspace.first # this will result in nil if no files were found
end
end
+
+ return if Gym.config[:workspace].to_s.length > 0
if Gym.config[:workspace].to_s.length == 0 and Gym.config[:project].to_s.length == 0
project = Dir["./*.xcodeproj"]
if project.count > 1
puts "Select Project: "