Troubleshooting on iOS

This page gives you a few tips to debug and test your instream ads.

  1. Debug Mode
  2. Test Placement
  3. Obfuscated crash reports and Firebase Crashlytics SDK

Debug mode

You can activate the Debug Mode of the SDK through SVSConfiguration.

When the Debug Mode is activated, the SDK will send logs to Xcode console.


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // ...

    // Enable debug mode of the SDK - This will send logs to your Xcode console.
    [[SVSConfiguration sharedInstance] setLoggingEnabled:YES];

    // ...
}

Don't forget to turn off the Debug Mode by setting loggingEnabled to NO before submitting your app to the App Store.

Test placement

For your convenience, the SDK provides a test SVSAdPlacement, that can show ads for preroll, midroll and postroll breaks.

This placement will return 2 ads per ad break at most.


- (SVSAdPlacement *)instantiateTestAdPlacement {
    // Create a Test SVSAdPlacement
    SVSAdPlacement *adPlacement = [SVSAdPlacement adPlacementForTestAd:SVSAdPlacementTestPrerollMidrollPostroll];
    return adPlacement;
}

Don't forget to use an actual ad placement before submitting your app to the App Store.

Obfuscated crash reports and Firebase Crashlytics SDK

If your app experiences crashes because of our SDK, you might end up with obfuscated method names for all our classes in your stacktraces (especially if your app has been built as a bitcode app).

To get deobfuscated crash reports with the Firebase Crashlytics SDK you will need to upload Smart Instream SDK debug symbol (dSYM) files.

According to the version of the Smart Instream SDK your app is using, you will need to retrieve on of the following dSYM file:

The Smart Instream SDK relies on a Smart Core SDK that has been installed automatically using Cocoapods. According to the version of the Smart Core SDK your app is using, you will also need to use on of the following dSYM file:

For more information, please read the official Firebase Crashlytics SDK documentation.