Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 1.3 KB
<div id="ios">
<h3>Setting up your iOS project</h3>
<li>Download the notifier from <a href="Github"></a>.</li>
<li>Drag the Airbrake folder to your project and make sure "Copy Items" and "Create Groups" are selected</li>
<li>Add <code>SystemConfiguration.framework</code> and <code>libxml2.dylib</code> to your project</li>
<li>Add the path `/usr/include/libxml2` to Header Search Paths in your project's build settings under "All Configurations"</li>
<h3>Running the notifier</h3>
<p>Import the notifier header file</p>
<pre>#import "ABNotifier.h"</pre>
<p>Call the main notifier method at the very beginning of your <code>application:didFinishLaunchingWithOptions:</code></p>
[ABNotifier startNotifierWithAPIKey:@"key"
<p>To test that the notifier is working inside your application, a simple test method is provided. This method raises an exception, catches it, and reports it as if a real crash happened. Add this code to your `application:didFinishLaunchingWithOptions:` to test the notifier:</p>
<pre>[ABNotifier writeTestNotice];</pre>