From aabaa110bcf006cb75ef6d509b57b6bfbcbd3757 Mon Sep 17 00:00:00 2001 From: Watson Date: Tue, 1 Jul 2014 13:57:32 +0900 Subject: [PATCH] [OSX] fix a 'not precompiled' error if specify old version as deployment_target on Yosemite http://hipbyte.myjetbrains.com/youtrack/issue/RM-525 --- lib/motion/project/xcode_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index 2881a3b7..3cb3311b 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -198,7 +198,7 @@ EOS deps << 'UIAutomation' if spec_mode deps.each do |framework| supported_versions.each do |ver| - next if ver < deployment_target || sdk_version < ver + next if Util::Version.new(ver) < Util::Version.new(deployment_target) || Util::Version.new(sdk_version) < Util::Version.new(ver) bs_path = File.join(datadir(ver), 'BridgeSupport', framework + '.bridgesupport') if File.exist?(bs_path) bs_files << bs_path