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

Argument passed to call that takes no arguments #260

Closed
alexanderPayClip opened this issue Oct 25, 2023 · 3 comments
Closed

Argument passed to call that takes no arguments #260

alexanderPayClip opened this issue Oct 25, 2023 · 3 comments
Assignees
Labels

Comments

@alexanderPayClip
Copy link

Describe the bug
xCode send this error "Argument passed to call that takes no arguments" after configure in didFinishLaunchingWithOptions

private let WRITE_KEY = "xxxxxxxxxx"
    
    var analytics: Analytics? = nil
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        let configuration = Configuration(writeKey: WRITE_KEY)
            .trackApplicationLifecycleEvents(true)
            .flushInterval(10)
            .flushAt(2)
        
        analytics = Analytics(configuration: configuration)
        
        return true
    }
@bsneed
Copy link
Contributor

bsneed commented Oct 25, 2023

Can you share a screenshot of what you're seeing in Xcode?

@alexanderPayClip
Copy link
Author

Just that:
Captura de pantalla 2023-10-25 a la(s) 11 52 03

on line:
analytics = Analytics(configuration: configuration)

@bsneed
Copy link
Contributor

bsneed commented Oct 25, 2023

More context would be helpful, but if you can't provide it i understand. You can look in the source and see easily that configuration is the argument that needs to be passed. Check to see if you’re having a class name conflict and it thinks it’s talking to something it’s not.

@bsneed bsneed closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants