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