Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wanghanfeng opened this issue Jul 31, 2023 · 1 comment

Comments

@wanghanfeng
Copy link

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

@bhxlla
Copy link

bhxlla commented Dec 20, 2023

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants