Troubleshooting on iOS
This page gives you a few tips to debug and test your instream ads.
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:
- SVSVideoKit-7.25.0.dSYM.zip
- SVSVideoKit-7.24.3.dSYM.zip
- SVSVideoKit-7.24.2.dSYM.zip
- SVSVideoKit-7.24.1.dSYM.zip
- SVSVideoKit-7.24.0.dSYM.zip
- SVSVideoKit-7.23.2.dSYM.zip
- SVSVideoKit-7.23.1.dSYM.zip
- SVSVideoKit-7.23.0.dSYM.zip
- SVSVideoKit-7.21.0.dSYM.zip
- SVSVideoKit-7.20.0.dSYM.zip
- SVSVideoKit-7.19.1.dSYM.zip
- SVSVideoKit-7.18.0.dSYM.zip
- SVSVideoKit-7.16.0.dSYM.zip
- SVSVideoKit-7.13.0.dSYM.zip
- SVSVideoKit-7.11.0.dSYM.zip
- SVSVideoKit-7.9.0.dSYM.zip
- SVSVideoKit-7.7.0.dSYM.zip
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:
- SCSCoreKit-7.19.1.dSYM.zip
- SCSCoreKit-7.19.0.dSYM.zip
- SCSCoreKit-7.18.1.dSYM.zip
- SCSCoreKit-7.18.0.dSYM.zip
- SCSCoreKit-7.17.1.dSYM.zip
- SCSCoreKit-7.17.0.dSYM.zip
- SCSCoreKit-7.16.0.dSYM.zip
- SCSCoreKit-7.15.0.dSYM.zip
- SCSCoreKit-7.14.0.dSYM.zip
- SCSCoreKit-7.13.0.dSYM.zip
- SCSCoreKit-7.12.0.dSYM.zip
- SCSCoreKit-7.11.0.dSYM.zip
- SCSCoreKit-7.10.1.dSYM.zip
- SCSCoreKit-7.10.0.dSYM.zip
- SCSCoreKit-7.9.0.dSYM.zip
- SCSCoreKit-7.8.0.dSYM.zip
- SCSCoreKit-7.7.0.dSYM.zip
- SCSCoreKit-7.6.0.dSYM.zip
- SCSCoreKit-7.5.2.dSYM.zip
Please look in your Podfile.lock to check what versions you are actually using.
For more information, please read the official Firebase Crashlytics SDK documentation.