当我在iOS应用中添加快速分析时。然后我的应用程序内存利用率迅速提高,并且应用程序将通过显示此错误消息
终止“来自调试器的消息:由于内存问题而终止。”
当我删除忙碌会话时,我的应用程序可以正常运行 在下面的代码中查看我曾经用来添加快速分析的代码。
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let builder = FlurrySessionBuilder.init()
.withLogLevel(FlurryLogLevelAll)
.withCrashReporting(true)
.withSessionContinueSeconds(2)
Flurry.startSession("My_key", with: builder)
}
答案 0 :(得分:0)
Initialise flurry with a delay, You might have used a some third party SDK that might be taking too long to initiate
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
//Initialise here
}