Skip to content
Browse files

Merge pull request #17 from chaione/master

Widens the search for the derived data folder in the build output
  • Loading branch information...
2 parents 936d9b0 + b8730fc commit 59f675e39a4b153f10092d9d4ba8e22cd55e4a1e @lukeredpath committed Jul 27, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/beta_builder.rb
View
5 lib/beta_builder.rb
@@ -48,6 +48,7 @@ def archive_name
end
def app_file_name
+ raise ArgumentError, "app_name or target must be set in the BetaBuilder configuration block" if app_name.nil? && target.nil?
if app_name
"#{app_name}.app"
else
@@ -75,8 +76,8 @@ 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(/Xcode\/DerivedData\/#{scheme}-(.*)/).first.split(" ").last
- derived_data_directory = reference.split("/Build/Products").first
+ reference = output.split("\n").grep(/Xcode\/DerivedData\/(.*)-(.*)/).first.split(" ").last
+ derived_data_directory = reference.split("/Build/Products/").first
"#{derived_data_directory}/Build/Products/"
end

0 comments on commit 59f675e

Please sign in to comment.
Something went wrong with that request. Please try again.