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