lib/run_loop/device.rb in run_loop-2.1.3 vs lib/run_loop/device.rb in run_loop-2.1.4
- old
+ new
@@ -503,11 +503,11 @@
"Add :AppleLanguages:0 string '#{lang_code}'",
global_plist
]
# RunLoop::PlistBuddy cannot add items to arrays.
- xcrun.exec(cmd, {:log_cmd => true})
+ xcrun.run_command_in_context(cmd, {:log_cmd => true})
simulator_languages
end
private
@@ -545,10 +545,10 @@
if physical_device?
raise RuntimeError, 'This method is available only for simulators'
end
args = ['simctl', 'list', 'devices']
- hash = xcrun.exec(args)
+ hash = xcrun.run_command_in_context(args)
out = hash[:out]
matched_line = out.split("\n").find do |line|
line.include?(udid)
end