Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build_dir detection when the app name has spaces
  • Loading branch information
skizz committed Oct 17, 2011
1 parent a9a7233 commit c863ab7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/beta_builder.rb
Expand Up @@ -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
Expand Down

0 comments on commit c863ab7

Please sign in to comment.