show the message that crash log might have been created

This commit is contained in:
Watson
2013-07-23 02:30:56 +09:00
parent 02582c48b7
commit 6e83c0d49d
2 changed files with 8 additions and 2 deletions

View File

@@ -109,7 +109,10 @@ END
app_args = (ENV['args'] or '')
App.info 'Simulate', app
at_exit { system("stty echo") } if $stdout.tty? # Just in case the simulator launcher crashes and leaves the terminal without echo.
sh "#{env} #{sim} #{debug} #{family_int} #{target} \"#{xcode}\" \"#{app}\" #{app_args}"
system "#{env} #{sim} #{debug} #{family_int} #{target} \"#{xcode}\" \"#{app}\" #{app_args}"
if $?.exitstatus != 0
$stderr.puts "\nThe application crashed. A crash report file may have been generated by the system, use `rake crashlog' to open it. Use `rake debug=1' to restart the app in the debugger."
end
end
desc "Create an .ipa archive"

View File

@@ -63,7 +63,10 @@ task :run do
app_args = (ENV['args'] or '')
App.info 'Run', exec
at_exit { system("stty echo") } if $stdout.tty? # Just in case the process crashes and leaves the terminal without echo.
sh "#{env} #{sim} #{debug} #{target} \"#{exec}\" #{app_args}"
system "#{env} #{sim} #{debug} #{target} \"#{exec}\" #{app_args}"
if $?.exitstatus != 0
$stderr.puts "\nThe application crashed. A crash report file may have been generated by the system, use `rake crashlog' to open it. Use `rake debug=1' to restart the app in the debugger."
end
end
desc "Run the test/spec suite"