Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Error in Parse+LiveQuery.swift : Cannot call value of non-function type 'ParseClientConfiguration?' #217

Closed
loxx123 opened this issue Nov 21, 2019 · 3 comments

Comments

@loxx123
Copy link

loxx123 commented Nov 21, 2019

current code

extension Parse {
    static func validatedCurrentConfiguration() -> ParseClientConfiguration {
        guard let configuration = Parse.currentConfiguration() else {
            preconditionFailure("Parse SDK is not initialized. Call Parse.initializeWithConfiguration() before loading live query client.")
        }
        return configuration
    }
}

error:

Cannot call value of non-function type 'ParseClientConfiguration?'

fixing the error:

extension Parse {
    static func validatedCurrentConfiguration() -> ParseClientConfiguration {
      guard let configuration = Parse.currentConfiguration else {
            preconditionFailure("Parse SDK is not initialized. Call Parse.initializeWithConfiguration() before loading live query client.")
        }
        return configuration
    }
}

this is in objective-c project, this won't really fix the error, however, since i'd have to rebuild the framework. let me know your thoughts on why this error is happening.

@bstillitano
Copy link

I also have this issue after updating an objective-c project to the latest SDK.

@TomWFox
Copy link
Contributor

TomWFox commented Nov 29, 2019

I believe a similar solution has been applied in #210

@drdaz
Copy link
Member

drdaz commented Nov 30, 2019

This should be fixed in the new 2.7.0 release.

@TomWFox TomWFox closed this as completed Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants