Class: Snapshot::Fixes::SharedPasteboardFix

Inherits:
Object
  • Object
show all
Defined in:
snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb

Overview

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

Class Method Summary collapse

Class Method Details

.patchObject


9
10
11
12
13
# 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