fastlane/lib/fastlane/actions/ensure_xcode_version.rb in fastlane-2.10.0 vs fastlane/lib/fastlane/actions/ensure_xcode_version.rb in fastlane-2.11.0
- old
+ new
@@ -4,9 +4,10 @@
ENSURE_XCODE_VERSION_CUSTOM_VALUE = :ENSURE_XCODE_VERSION_CUSTOM_VALUE
end
class EnsureXcodeVersionAction < Action
def self.run(params)
+ Actions.verify_gem!('xcode-install')
required_version = params[:version]
selected_version = sh("xcversion selected").match(/^Xcode (.*)$/)[1]
if selected_version == required_version
UI.success("Selected Xcode version is correct: #{selected_version}")