Browse files

Fix build_dir detection when the app name has spaces

  • Loading branch information...
1 parent a9a7233 commit c863ab7e63fbb50caa080fbafc49cdfef7d14325 @skizz skizz committed Oct 17, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/beta_builder.rb
View
7 lib/beta_builder.rb
@@ -87,7 +87,12 @@ def derived_build_dir_from_build_output
output = File.read("build.output")
# yes, this is truly horrible, but unless somebody else can find a better way...
- reference = output.split("\n").grep(/^Validate(.*)\/Xcode\/DerivedData\/(.*)-(.*)/).first.split(" ").last
+ found = output.split("\n").grep(/^Validate(.*)\/Xcode\/DerivedData\/(.*)-(.*)/).first
+ if found && found =~ /Validate \"(.*)\"/
+ reference = $1
+ else
+ raise "Cannot parse build_dir from build output."
+ end
derived_data_directory = reference.split("/Build/Products/").first
"#{derived_data_directory}/Build/Products/"
end

0 comments on commit c863ab7

Please sign in to comment.