lib/snapshot/fixes/simulator_zoom_fix.rb in snapshot-1.2.1 vs lib/snapshot/fixes/simulator_zoom_fix.rb in snapshot-1.2.2
- old
+ new
@@ -11,10 +11,10 @@
`killall iOS Simulator &> /dev/null`
Helper.log.debug "Patching '#{config_path}' to scale simulator to 100%"
FastlaneCore::Simulator.all.each do |simulator|
- simulator_name = simulator.name.tr(" ", "-")
+ simulator_name = simulator.name.tr("\s", "-")
key = "SimulatorWindowLastScale-com.apple.CoreSimulator.SimDeviceType.#{simulator_name}"
command = "defaults write '#{config_path}' '#{key}' '1.0'"
puts command.yellow if $debug
`#{command}`