mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
Fail if target path does not exist
This commit is contained in:
committed by
Laurent Sansonetti
parent
aa12d7ed77
commit
0187a9111f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user