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

Cannot specialize a non-generic definition #15

Open
vitorventurin opened this issue Apr 17, 2018 · 2 comments
Open

Cannot specialize a non-generic definition #15

vitorventurin opened this issue Apr 17, 2018 · 2 comments

Comments

@vitorventurin
Copy link

AppDelegate:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        let analytics = Analytics<EventTracking>() --> error: Cannot specialize a non-generic definition
        analytics.register(provider: FirebaseProvider())
        return true
}
@devxoul
Copy link
Owner

devxoul commented Apr 18, 2018

How did you define EventTracking?

@AnatoliK17
Copy link

I had exactly the same issue. There is an Analytics class in firebase analytics and by default, it tries to initialize it.

You need to use the namespace Umbrella.Analytics<EventTracking>()

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

3 participants