by surferbayarea · 6y ago · 0 comments
Offending code :
if (restrictiveParams[eventName][@"is_deprecated_event"]) {
[deprecatedEventSet addObject:eventName];
}So, the iOS library does not check for nil, and whatever the server is returning does not have the expected content. Lame.
if (restrictiveParams[eventName] as! [String: Any])["test"] != nil
In Swift, now hopefully you wouldn't write this code but it's not entirely unlikely too. In fact the above Objective-C snippet is one of the few cases where Objective-C's forgiving `nil` behaviour doesn't save you from a crash.I doubt (and at least from my experience around SV, haven't seen) that FB/Google are paying apps to include their SDKs.