title: Catching the crash log on iOS
body: <p>The main idea is to catch the crash log (or the reason of the error) and send it to a server.
  I know that iTunes does log the crashes from the users' devices but I need to find if there's a way to get it and store it on our server.</p>
  
  <p>I was trying "PlCrashReporter" and i finished implementing it (as they did on this link <a href="https://www.plcrashreporter.org/documentation/api/v1.0/example_usage_iphone.html" rel="nofollow noreferrer">https://www.plcrashreporter.org/documentation/api/v1.0/example_usage_iphone.html</a>).</p>
  
  <p><strong>Problem</strong></p>
  
  <p>The function <strong>applicationDidFinishLaunching</strong> is not called when the crash occurs.</p>
  
  <p>Am I on the right track? 
  Is there a specific function which is called upon a crash in <strong>AppDelegate</strong> ? </p>
  
  <p>Thanks in advance </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've also tried the solution of the following question:</p>
  
  <p><a href="https://stackoverflow.com/questions/8233388/ios-crash-log-catch-debug-info-catch-and-send-via-email-to-the-dev-team">iOS crash log catch, debug info.. Catch and send via email to the Dev team</a></p>
  
  <p>It actually works but there are some errors that are cause by Swift and not Objective-C (Like <strong>Error while unwrapping optional value</strong>) were not caught.. </p>
  
  <p>Any suggestions?</p>