lib/run_loop/xcode.rb in run_loop-4.2.2 vs lib/run_loop/xcode.rb in run_loop-4.2.3

- old
+ new

@@ -118,11 +118,11 @@ # # @return [Boolean] `true` if the current Xcode version is >= 10.2 def version_gte_102? version >= v102 end - + # Is the active Xcode version 10.0 or above? # # @return [Boolean] `true` if the current Xcode version is >= 10.0 def version_gte_100? version >= v100 @@ -252,9 +252,12 @@ if RunLoop::Environment.developer_dir path = RunLoop::Environment.developer_dir else path = xcode_select_path end + + require 'pathname' + path = Pathname.new(path).realpath.to_s if !File.directory?(path) raise RuntimeError, %Q{Cannot determine the active Xcode. Expected an Xcode here: