fix a bug in build system where app does not work on iOS5 device

http://hipbyte.myjetbrains.com/youtrack/issue/RM-221

The compile flags for device are missing.
This bug was introduced by 2617e9a3e4
This commit is contained in:
Watson
2013-07-20 12:31:46 +09:00
parent af427bd35d
commit 3b75fb79ee

View File

@@ -137,15 +137,15 @@ module Motion; module Project;
def common_flags(platform)
simulator_version = begin
flag = " -miphoneos-version-min=#{deployment_target}"
if platform == "iPhoneSimulator"
ver = xcode_version[0].match(/(\d+)/)
if ver[0].to_i >= 5
" -mios-simulator-version-min=#{deployment_target}"
else
" -miphoneos-version-min=#{deployment_target}"
flag = " -mios-simulator-version-min=#{deployment_target}"
end
end
end || ""
flag
end
super + simulator_version
end