RTBSDK iOS Integration
Release Notes
  • Start
    • Setup
      • Cocoapods
      • Swift Package Manager
      • Configure RTBSDK
    • Consent
  • Formats
    • Banners
    • Fullscreen (Interstitial)
    • Native Ads
    • Advanced
      • Separate Loading and Rendering of Banner Ads
  • Other
    • AdMob Custom Events
    • AppLovin Custom Adapter
    • Reference
      • Classes
        • RTBSDKManager
        • RTBBannerView
        • RTBBannerAdProvider
        • RTBBannerBid
        • RTBBannerRequestConfiguration
        • RTBBannerSize
        • RTBFullscreenAd
        • RTBFullscreenRequestConfiguration
        • RTBNativeAdLoader
        • RTBNativeAd
        • RTBNativeAdRequestConfiguration
        • RTBUserTargeting
        • RTBBidInfo
      • Protocols
        • RTBBannerViewDelegate
        • RTBBannerAdLoadDelegate
        • RTBBannerAdInteractionDelegate
        • RTBFullscreenDelegate
        • RTBNativeAdLoaderDelegate
        • RTBNativeAdInteractionDelegate
      • Enumerations
        • RTBLogLevel
        • RTBGender
  • Sample App
Powered by GitBook
On this page
  1. Start
  2. Setup

Cocoapods

Add RTBSDK to your app using Cocoapods

Last updated 1 year ago

CocoaPods is a dependency manager for Xcode projects (Swift and Objective-C). Please refer to for general information on how to set up podfiles.

Integration Steps

  • 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:

import RTBSDK
#import <RTBSDK/RTBSDK.h>
cocoapods.org