Sha256: 4a2c606bb28cf9ef93e1a8534426c137a9bd04a886e6cc81e2de3dafcdb99d27

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

require_relative '../module'

module Snapshot
  module Fixes
    # Becoming first responder can trigger Pasteboard sync, which can stall and crash the simulator
    # See https://twitter.com/steipete/status/1227551552317140992

    class SharedPasteboardFix
      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb
fastlane_hotfix-2.165.0 snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb
fastlane_hotfix-2.187.0 snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb