From a9504637c3a24eebb5d096ff6443e2aab58aaa71 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Tue, 12 Nov 2013 17:04:34 -0800 Subject: [PATCH] [Issue #75] Aborting if no schemes are found --- lib/shenzhen/commands/build.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/shenzhen/commands/build.rb b/lib/shenzhen/commands/build.rb index 44cc6cd..b86187b 100644 --- a/lib/shenzhen/commands/build.rb +++ b/lib/shenzhen/commands/build.rb @@ -114,6 +114,8 @@ def determine_workspace_or_project! end def determine_scheme! + say_error "No schemes found in Xcode project or workspace" and abort unless @xcodebuild_info.schemes + if @xcodebuild_info.schemes.length == 1 @scheme = @xcodebuild_info.schemes.first else