amplitude / Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
MIT License
32 stars 22 forks source link

Xcode reports hang risk from the Amplitude SDK #160

Closed yqiang closed 5 months ago

yqiang commented 5 months ago

Xcode reports the following warning when running my app with the Amplitude SDK (version 1.4.5) installed:

Amplitude-Swift/Sources/Amplitude/Utilities/OutputFileStream.swift:40 {"message":"This code path does I/O on the main thread underneath that can lead to UI responsiveness issues. Consider ways to optimize this code path","antipattern trigger":"-[NSData enumerateByteRangesUsingBlock:]","message type":"suppressable","show in console":"0"}

Screenshot 2024-05-09 at 9 26 52 AM

iOS 17.4.1 Xcode 15.3

crleona commented 5 months ago

Hi @yqiang, this should be fixed in 1.5.0 - please reopen this issue if it persists!