Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
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

Description

@loxx123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions