ironSource iOS SDK Integration with Swift

ironSource supports both Objective-C and Swift. While the ironSource SDK is written in Objective-C, you can easily make it compatible to Swift by following the below steps. The ironSource SDK supports Swift 3.

Import Objective-C to Swift

  1. Download ‘IronSource-Bridging-Header.h‘ file here.
  2. Unzip it and add IronSource-Bridging-Header.h into your Xcode Project.
  3. Navigate to Targets Build Setting and scroll down to the Objective-C Bridging Header.
  4.  Enter the Header File path or drag it into the box as can be seen below:
    Supersonic iOS Integration with Swift


Once you’ve completed the above steps, you can use Swift seamlessly within the ironSource SDK, without importing any additional Header Files.


 What’s Next?

You are now all set to start integrating the ironSource SDK with Swift!
Navigate to Getting Started With ironSource iOS SDK to integrate our latest iOS SDK.