ios-oss icon indicating copy to clipboard operation
ios-oss copied to clipboard

run with runtime error 'Thread 1: "library must be initialized before calling this method."'

Open wanghanfeng opened this issue 2 years ago • 1 comments

when i set isOSS to true in Secrets.swift, simulator run with rumtime error, like below picture: image

wanghanfeng avatar Jul 31 '23 09:07 wanghanfeng

Apparently it's because Analytics.shared() is accessed before Analytics.setup. As a temporary fix, commenting out this line worked for me, AppDelegate.swift, L#249 enabled ? Analytics.shared().enable() : Analytics.shared().disable()

bhxlla avatar Dec 20 '23 19:12 bhxlla