Browse files

Produce from the compiled app more carefully

With the --noclean option there are possibly more than one *.app
directories in the frankified_build directory. At least discard
the directory as the source directory.

Copy recursively instead of moving so that the source directory
remains ready for the next build.
  • Loading branch information...
1 parent f791937 commit caa6d03ecf8d7a6ecb838c24aa202842518a96fa Aki Koskinen committed Nov 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 gem/lib/frank-cucumber/cli.rb
@@ -80,7 +80,9 @@ def build
run %Q|xcodebuild -xcconfig Frank/frankify.xcconfig #{build_steps} #{extra_opts} -configuration Debug -sdk iphonesimulator DEPLOYMENT_LOCATION=YES DSTROOT="#{build_output_dir}" FRANK_LIBRARY_SEARCH_PATHS="\\"#{frank_lib_directory}\\""|
- Dir.glob( "#{build_output_dir}/*.app" ).first, frankified_app_dir )
+ app = Dir.glob("#{build_output_dir}/*.app").delete_if { |x| x =~ /\/#{app_bundle_name}$/ }
+ app = app.first
+ FileUtils.cp_r("#{app}/.", frankified_app_dir)

0 comments on commit caa6d03

Please sign in to comment.