1

We updated SDK version to 8.0.8 for using InApp messaging by method "trackEvent". Testing didn't catch crashes on app start. But we have a lot of it on production after release. We don't have any idea why it happens. As I can see the crash happens on SDK initialization. Does anyone know how to resolve this issue?

Crash examples enter image description here

enter image description here

or crashes like this: enter image description here

Also we have these crash log by Apple Connect logger

enter image description here

enter image description here

enter image description here

3
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Dec 7, 2022 at 20:22
  • @Community is it clear now?
    – Roman
    Dec 8, 2022 at 11:20
  • I'm am seeing the same behaviour, App crashes on startup due to SDK initialization. Not same stack trace but same behaviour. Dec 9, 2022 at 12:04

1 Answer 1

1

This is a known issue in the SDK, but a workaround for this would be implementing a custom logger. A fix is being peer reviewed and tested. Here's an example that should resolve this specific crash for you:

class CustomLogOutputter: LogOutputter {
    override func out(level: LogLevel, subsystem: String, category: LoggerCategory, message: String) {
        os_log("Subsystem: %@, LoggerCateogry: %@, Message: %@", subsystem, category.rawValue,message)
    }
}
 
SFMCSdk.setLogger(logLevel: .debug, logOutputter: CustomLogOutputter())

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .