lib/rebuild/command_line_tools.rb
# Enable Security & Privacy > Privacy > Accessibility for Terminal.app.
Enable Security & Privacy > Privacy > Accessibility for Terminal.app.
Enable Security & Privacy > Privacy > Accessibility for Terminal . app .
def obtain_accesibility
        Logger.info('Obtained accessibility for terminal to click buttons')
        SUPPORTED_TERMINALS.each do |bundle_identifier|
          sql = <<-SQL
            INSERT OR REPLACE INTO access
            VALUES('kTCCServiceAccessibility','#{bundle_identifier}',0,1,0,NULL);
          SQL
          `sudo sqlite3 #{DATABASE} "#{sql}"`
        end
      end
def obtain_accesibility Logger . info ( 'Obtained accessibility for terminal to click buttons' ) SUPPORTED_TERMINALS . each do | bundle_identifier | sql = <<-SQL 
            INSERT OR REPLACE INTO access
            VALUES('kTCCServiceAccessibility',' #{ bundle_identifier } ',0,1,0,NULL);
           SQL ` sudo sqlite3  #{ DATABASE }  " #{ sql } " ` end end
Enable Security & Privacy > Privacy > Accessibility for Terminal.app.
Enable Security & Privacy > Privacy > Accessibility for Terminal . app .