Closed NishanthMurugan closed 1 year ago
Thanks @NishanthMurugan. Looking into this now. We'll be in touch as soon as possible.
@CaseyApptentive any news regarding this issue?
Same crash happens to us in production, using SDK 6.0.0, on both iOS 15 and 16.
@mihaigpm and @NishanthMurugan, I believe we have a workaround while we work on an update to the SDK. Somewhere before registering the Apptentive SDK, you should override the value of the apptentiveAssertionHandler variable to either an empty block, or a block that calls assertionFailure:
apptentiveAssertionHandler = { (message, file, line) in
assertionFailure(message(), file: file, line: line)
}
The default value of this variable is simply the assertionFailure function, and unfortunately it doesn’t seem to get compiled out in release builds correctly if referenced in this way.
Will you let me know if that frees you up?
We will continue to do more investigation in terms of why the assertion is being triggered in the first place.
We've incorporated the above fix into version 6.0.5, along with a fix that should eliminate the error exposed by the issue.
@mihaigpm and @NishanthMurugan are you still experiencing this issue?
This was addressed in 6.0.5 and we have since pushed 6.0.6. Can you give that a try and let us know?
@CaseyApptentive the crash got solved in 6.0.5 and also with the workaround that you posted earlier. Thank you for looking into it fast!
Thanks for confirming. Let us know if you need anything else.
App is crashing in production. Please find the crash log below and help to resolve it.