Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Build command: update Xcode version validation for Xcode 10+ (#351) (#…
Browse files Browse the repository at this point in the history
…352)

* Build command: update Xcode version validation for Xcode 10+ (#351)

* Fixed variable naming to match convention
  • Loading branch information
thzinc authored and dankimio committed Sep 29, 2018
1 parent e9de171 commit 06f0e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/shenzhen/commands/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@

def validate_xcode_version!
version = Shenzhen::XcodeBuild.version
say_error "Shenzhen requires Xcode 4 (found #{version}). Please install or switch to the latest Xcode." and abort if version < "4.0.0"
major_version = version.split('.')[0].to_i
say_error "Shenzhen requires Xcode 4 (found #{version}). Please install or switch to the latest Xcode." and abort if major_version < 4
end

def determine_workspace_or_project!
Expand Down

0 comments on commit 06f0e9c

Please sign in to comment.