mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user