title: LibraryFatal.log is not accessible
body: <p>Debugging a Xamarin iOS project, reaching an exception and trying to record it using</p>
  <pre><code>    internal static void LogUnhandledException(Exception exception)
      {
          try
          {
              const string errorFileName = &quot;Fatal.log&quot;;
              var libraryPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Resources);
              var errorFilePath = libraryPath + errorFileName;
              var errorMessage = String.Format(&quot;Time: {0}\r\nError: Unhandled Exception\r\n{1}&quot;, DateTime.Now, exception.ToString());
              System.IO.File.WriteAllText(errorFilePath, errorMessage);
          }
          catch (Exception ex)
          {
              if (App.debugging) { throw; };
              if (App.debugLogging) { App.ReportError(ex.ToString()); };
          }
      }
  </code></pre>
  <p>I am receiving another error message stating</p>
  <blockquote>
  <p><strong>System.UnauthorizedAccessException:</strong> 'Access to the path &quot;/var/mobile/Containers/Data/Application/B5DD413C-30B0-4B4B-B458-1BF6746FB953/LibraryFatal.log&quot; is denied.'</p>
  </blockquote>
  <p>Is this path on the MAC or the iPhone? Where? I am assuming that is being created during the initialization of debugging or perhaps by the GetFolderPath function. Or perhaps not and needs to be coded.</p>
  <p>Searching, I haven't found any mention of the log online.</p>