You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding Matrix Swift to Swift Project I see 76 Swift Compiler Errors in MXRoom, MXRestClient and MXSession classes extensions:
Cannot convert call result type '(_) -> Void' to expected type '(() -> Void)!'
Cannot convert call result type '(_) -> Void' to expected type 'MXOnBackgroundSyncDone!' (aka 'ImplicitlyUnwrappedOptional<() -> ()>')
For Example this code:
/** Set the topic of the room. - parameters: - topic: the topic to set. - completion: A block object called when the operation completes. - response: Indicates whether the operation was a success or failure. - returns: a `MXHTTPOperation` instance. */@nonobjc@discardableResultfunc setTopic(_ topic:String, completion:@escaping(_ response:MXResponse<Void>)->Void)->MXHTTPOperation{return__setTopic(topic, success:currySuccess(completion), failure:curryFailure(completion))}
Has the following error:
Cannot convert call result type '(_) -> Void' to expected type '(() -> Void)!'
Why is this happened?
Swift Version 4
Matrix Pods:
# ---------------------------------------------
# Matrix SDK
# ---------------------------------------------
pod 'SwiftMatrixSDK'
# Enable VoIP
pod 'MatrixSDK/JingleCallStack'
The text was updated successfully, but these errors were encountered:
This swift layer was brought by the community. The matrix core team runs projects in Obj-C so that maintaining this pod is not in our priorities at the moment.
What I can suggest:
downgrade your project to Swift 3. You can achieve this with CocoaPods by adding a .swift-version file next to your Podfile. This text file contains only the string 3.2.
or use directly the Obj-C pod, pod MatrixSDK, and skip the Swift refinement layer of SwiftMatrixSDK
or try to fix these errors. A PR from the community will be warmly welcomed
When adding Matrix Swift to Swift Project I see 76 Swift Compiler Errors in MXRoom, MXRestClient and MXSession classes extensions:
Cannot convert call result type '(_) -> Void' to expected type '(() -> Void)!'
Cannot convert call result type '(_) -> Void' to expected type 'MXOnBackgroundSyncDone!' (aka 'ImplicitlyUnwrappedOptional<() -> ()>')
For Example this code:
Has the following error:
Why is this happened?
Swift Version 4
Matrix Pods:
# ---------------------------------------------
# Matrix SDK
# ---------------------------------------------
pod 'SwiftMatrixSDK'
# Enable VoIP
pod 'MatrixSDK/JingleCallStack'
The text was updated successfully, but these errors were encountered: