[Yosemite] Allow OS X apps targeting OS versions lower than current to build.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-592
This commit is contained in:
Eloy Durán
2014-09-10 15:52:26 +02:00
parent 8fec7331b8
commit 02b8f8a2f5
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ module Motion; module Project;
def supported_sdk_versions(versions)
versions.reverse.find { |vers|
Util::Version.new(osx_version) <= Util::Version.new(vers) && File.exist?(datadir(vers))
Util::Version.new(deployment_target) <= Util::Version.new(vers) && File.exist?(datadir(vers))
}
end

View File

@@ -152,7 +152,7 @@ EOS
end
supported_vers = supported_sdk_versions(versions)
unless supported_vers
App.fail "RubyMotion doesn't support any of these SDK versions: #{versions.join(', ')}"
App.fail "The requested SDK (#{deployment_target}) is not available or supported by RubyMotion at this time. Supported and available SDKs are: #{versions.join(', ')}."
end
supported_vers
end