Closed romainehinds17 closed 12 months ago
Thank you for that. We will check it and will reach out to you soon
@amit-kremer93 Any update on resolution of this issue ?
We are facing this issue on 6.11.x and 6.12 as well
The fix will be released as part of 6.12.1
We have invocation check if (@available(iOS 16.1.1, macCatalyst 16.1.1, *))
and this check passes tvOS..
Report
We noticed this while rolling out an updated version of our app. After triaging we confirmed that any
tvOS
versions below16.1
crashes on launch assuming AppDelegate is being used to initialize the framework.SDK Version
6.10.X
What did you do?
Ran app with framework integrated on tvOS
16.0
.What did you expect to happen?
App to launch without issue.
What happened instead?
Crashed
Please provide any other relevant information.
I did investigate this further and notice the app crashes when trying to call
SKAdNetwork.updatePostbackConversionValue(_:coarseValue:lockWindow:completionHandler:)
This caused the OS to crash when invoking
objc_opt_respondsToSelector
internally. It seems this SKAdNetwork function was added in iOS 16.1. The thing to note here is even though that function can't be invoked on tvOS the framework and symbols exists within tvOS 16.1+. This explains why we don't see a crash happening on 16.1+ because the OS would be able to resolve the symbols when invokingobjc_opt_respondsToSelector
and "drop the call" on tvOS.I see that in
6.10.0: SKAdNetwork 4.0 support
was added.I recommend maybe wrapping the invocation of
AFSDKSKAdNetworkV4Impl __updatePostbackConversionValueWith
with