Installation With Cocoapods

NOTE: This is our recommended installation method.

In your Podfile:

platform :ios

target 'YOUR_APP_NAME' do
  pod "Rollbar", "~> 0.2"

NOTE: The plaftform:ios statement is required

Without Cocoapods

  1. Download the file from the latest release of rollbar-ios.

  2. Extract the Rollbar directory in the zip file to your Xcode project directory.

  3. In Xcode, select File -> Add Files to "[your project name]" and choose the Rollbar directory from step 2.

Configuration and Testing

In your AppDelegate.m file, add the following import statement:

#import <Rollbar/Rollbar.h>

Then add the following to application:didFinishLaunchingWithOptions::

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [Rollbar initWithAccessToken:@"{{client_access_token}}"];
    [Rollbar infoWithMessage:@"Test message"];
    // Rest of your code here...
    return YES;

Once you've confirmed that a test message was sent to your Rollbar project, remove the call to [Rollbar infoWithMessage].

Further Configuration

For additional configuration instructsion, including instructions for symbolication, see the documentation for rollbar-ios.