Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid Firebase / BoringSSL Console Logs on iOS

After installing Firebase (Cloud Firestore), I usually get tons of console logs, usually belonging to BoringSSL, such as this:

2018-08-27 13:49:03.747112+0100 VM[25611:371248] [BoringSSL] boringssl_session_errorlog(224) [C2.1:2][0x7f9570c142d0] [boringssl_session_read] SSL_ERROR_SSL(1): operation failed within the library

Is there a way to avoid logs from these (or any) external frameworks?

Thanks.

like image 747
Jacobo Koenig Avatar asked Aug 27 '18 12:08

Jacobo Koenig


1 Answers

Though the link to the relevant thread is correct, the top vote was given does not solve this problem with the lower dependency libraries.

To silence BoringSSL use

OS_ACTIVITY_MODE = disable

Steps

  1. Navigate to Product -> Scheme -> Edit Scheme.
  2. Open the Arguments tab
  3. Environment Variables section add OS_ACTIVITY_MODE = disable

Scheme Editing

like image 165
ruralcoder Avatar answered Oct 18 '22 19:10

ruralcoder