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

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

Merged
merged 2 commits into from
Sep 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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