fastlane/lib/fastlane/environment_printer.rb in fastlane-2.18.0.beta.20170219010032 vs fastlane/lib/fastlane/environment_printer.rb in fastlane-2.18.0.beta.20170220010017
- old
+ new
@@ -221,10 +221,15 @@
"Is homebrew" => Helper.homebrew?.to_s
}
if Helper.mac?
table_content["Xcode Path"] = anonymized_path(Helper.xcode_path)
- table_content["Xcode Version"] = Helper.xcode_version
+ begin
+ table_content["Xcode Version"] = Helper.xcode_version
+ rescue => ex
+ UI.error(ex)
+ UI.error("Could not get Xcode Version")
+ end
end
table = ["| Key | Value |"]
table += table_content.collect { |k, v| "| #{k} | #{v} |" }