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

App crash on Analytics configuration #1041

Open
vipul898989 opened this issue Sep 3, 2022 · 0 comments
Open

App crash on Analytics configuration #1041

vipul898989 opened this issue Sep 3, 2022 · 0 comments

Comments

@vipul898989
Copy link

When we configure Analytics application crash. here is the code for initialisation and that function where i got crash.

public func initAnalytics() {

    let configuration = AnalyticsConfiguration.init(writeKey: "...........")
    configuration.trackApplicationLifecycleEvents = true
    configuration.recordScreenViews = false
    configuration.trackPushNotifications = true
    
    configuration.use(SEGAppsFlyerIntegrationFactory())
    configuration.use(SEGFlurryIntegrationFactory.instance() as! SEGFlurryIntegrationFactory)
    configuration.use(SEGAmplitudeIntegrationFactory.instance())
    configuration.use(SEGMixpanelIntegrationFactory.instance())
    configuration.use(SEGFirebaseIntegrationFactory.instance())
    
    Analytics.debug(true)
    Analytics.setup(with: configuration) **// at this line i found crash**

}

Crash Details:
*** -[NSKeyedUnarchiver validateAllowedClass:forKey:]: NSSecureCoding allowed classes list contains [NSObject class], which bypasses security by allowing any Objective-C class to be implicitly decoded. Consider reducing the scope of allowed classes during decoding by listing only the classes you expect to decode, or a more specific base class than NSObject. This will become an error in the future. Allowed class list: {(
"'NSObject' (0x234a6de30) [/usr/lib]"
)}

Hardware details:
macOS Monterey 12.4
Xcode 13.4.1
iPhone Xs with iOS 15.5

Can someone help me solve this?

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

1 participant