mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-18 07:29:20 +08:00
Merge pull request #97 from mgarriott/fix_xcode_version
Fix build expression for Xcode 3.x
This commit is contained in:
@@ -82,7 +82,7 @@ EOS
|
||||
@xcode_version ||= begin
|
||||
txt = `#{locate_binary('xcodebuild')} -version`
|
||||
vers = txt.scan(/Xcode\s(.+)/)[0][0]
|
||||
build = txt.scan(/Build version\s(.+)/)[0][0]
|
||||
build = txt.scan(/(BuildVersion:|Build version)\s(.+)/)[0][1]
|
||||
[vers, build]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user