# Cocoapods

CocoaPods is a dependency manager for Xcode projects (Swift and Objective-C). Please refer to [cocoapods.org](http://cocoapods.org/) for general information on how to set up podfiles.

#### Integration Steps <a href="#integration-steps" id="integration-steps"></a>

* Make sure you have CocoaPods installed: `gem install cocoapods`.
* In the terminal app, navigate to the project directory and call `pod init` to create a `podfile`.
* Make sure you have an updated copy of the spec repository: `pod repo update`.
* In your podfile, add RTBSDK like the following:

```
target '<Target Name>' do
  use_frameworks!
  pod 'RTBSDK', '<RTBSDK_VERSION>'
end
```

* Make sure you have quit Xcode.
* In the terminal app, navigate to the project directory and call `pod install`.
* Now, open the new Xcode Workspace: `open ProjectName.xcworkspace`.
* Import RTBSDK in the project files:

{% tabs %}
{% tab title="Swift" %}

```swift
import RTBSDK
```

{% endtab %}

{% tab title="Objective-C" %}

```objectivec
#import <RTBSDK/RTBSDK.h>
```

{% endtab %}
{% endtabs %}
