{% load i18n %}
{% blocktrans with 'https://github.com/getsentry/raven-objc' as link %}Start by installing raven-objc:{% endblocktrans %}
cd [your project root] git submodule add git://github.com/getsentry/raven-objc
{% trans "(Installing the client as a git submodule will make future updates easier)" %}
{% blocktrans %}Initialize the client. This is usually done in your app delegate's application:didFinishLaunchingWithOptions
:{% endblocktrans %}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Configure the Sentry client [RavenClient clientWithDSN:@"{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}"]; // Install the global error handler [[RavenClient sharedClient] setupExceptionHandler]; return YES; }
{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}
{% blocktrans with 'https://github.com/getsentry/raven-objc' as link %}For more information on other uses of Raven with iOS, please see the official documentation for raven-objc.{% endblocktrans %}