Our app collects idfa through this API.
It's a simple computed property:
var idfa: String {
return ASIdentifierManager.shared().advertisingIdentifier.uuidString
}
But seems like it has a very low chance of crashing, based on our production record, it crashes 1 out of a million runs.
The stack trace is:
- 0 libswiftFoundation.dylib 0x0000000184c34728 0x184c1b000 + 104232
- XXXApp 0x000000010bd42d70 AdsDataCollector.idfa.getter + 156118384 (AdsDataCollector.swift:0)
What could be the reason?