mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
ignore output of killall command
This commit is contained in:
@@ -92,7 +92,7 @@ task :simulator => ['build:simulator'] do
|
||||
# Configure the SimulateDevice variable (the only way to specify if we want to run in retina mode or not).
|
||||
simulate_device = App.config.device_family_string(family_int, retina)
|
||||
if `/usr/bin/defaults read com.apple.iphonesimulator "SimulateDevice"`.strip != simulate_device
|
||||
system("/usr/bin/killall \"iPhone Simulator\"")
|
||||
system("/usr/bin/killall \"iPhone Simulator\" >& /dev/null")
|
||||
system("/usr/bin/defaults write com.apple.iphonesimulator \"SimulateDevice\" \"'#{App.config.device_family_string(family_int, retina)}'\"")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user