Hi,
In IOS, when I try to use the remove file statement:
backendless.fileService.remove(
“myfiles/myhelloworld-async.txt”,
response: { ( result: AnyObject!) -> () in
print(“File has been removed: result = (result)”)
},
error: { ( fault : Fault!) -> () in
print(“Server reported an error: (fault)”)
}
)
I immediatlely get the following compilation error message:
“Contextual closure type ‘() -> Void’ expects 0 arguments, but 1 was used in closure body”
What can I do to solve the error?
This same problem happens to me if I try to delete a geopoint:
backendless.geo.remove(geoPoint,
response: {
(result: Any?) -> Void in
print(“GeoPoint removed: (String(describing: result))”)
},
error: {
(fault: Fault?) -> Void in
print(“Server reported an error: (String(describing: fault))”)
})
Regards,