From 0187a9111fec8f33c0eee54f27979a2fd298fd82 Mon Sep 17 00:00:00 2001 From: Mark Villacampa Date: Wed, 27 Aug 2014 21:11:15 +0200 Subject: [PATCH] Fail if target path does not exist --- lib/motion/project/xcode_config.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index 0b271ac9..df4a26c6 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -461,6 +461,10 @@ EOS attr_accessor :targets def target(path, type, opts={}) + unless File.exist?(path) + App.fail "Could not find target of type '#{type}' at '#{path}'" + end + case type when :framework opts[:load] = true unless opts[:load] == false