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
Description
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
Labels
No labels