diff --git a/lib/xcode_build/translations/building.rb b/lib/xcode_build/translations/building.rb index b66f355..5c5a7b2 100644 --- a/lib/xcode_build/translations/building.rb +++ b/lib/xcode_build/translations/building.rb @@ -60,9 +60,9 @@ def building? def notify_build_started(line) @building = true - target = line.match(/TARGET ([\w\-\.]+)/)[1] - project = line.match(/PROJECT ([\w\-\.]+)/)[1] - + target = line.match(/TARGET ([\w\+\-\. ]+) OF PROJECT/)[1] + project = line.match(/OF PROJECT ([\w\+\-\. ]+) WITH/)[1] + if line =~ /DEFAULT CONFIGURATION \((\w+)\)/ configuration = $1 default = true diff --git a/lib/xcode_build/translations/cleaning.rb b/lib/xcode_build/translations/cleaning.rb index 500791c..bf3caa9 100644 --- a/lib/xcode_build/translations/cleaning.rb +++ b/lib/xcode_build/translations/cleaning.rb @@ -46,8 +46,8 @@ def cleaning? def notify_clean_started(line) @cleaning = true - target = line.match(/TARGET (\w+)/)[1] - project = line.match(/PROJECT (\w+)/)[1] + target = line.match(/TARGET ([\w\+\-\. ]+) OF PROJECT/)[1] + project = line.match(/OF PROJECT ([\w\+ ]+) WITH/)[1] if line =~ /DEFAULT CONFIGURATION \((\w+)\)/ configuration = $1