mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-13 09:35:28 +08:00
show the message that crash log might have been created
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user