From a3f8ccfb90e99a47579375beba2c8b7d1d2cfd82 Mon Sep 17 00:00:00 2001 From: Matt Garriott Date: Wed, 12 Jun 2013 10:57:49 -0600 Subject: [PATCH] Fix build expression for Xcode 3.x --- 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 a57cec65..b01304e2 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -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