class Snapshot::Fixes::SharedPasteboardFix

Becoming first responder can trigger Pasteboard sync, which can stall and crash the simulator See twitter.com/steipete/status/1227551552317140992

Public Class Methods

patch() click to toggle source
# File snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb, line 9
def self.patch
  UI.verbose("Patching simulator to disable Pasteboard automatic sync")

  Helper.backticks("defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false", print: FastlaneCore::Globals.verbose?)
end