Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 无法转换。。。是否需要参数类型“PFIdResultBlock”_Ios_Heroku_Parse Server - Fatal编程技术网

Ios 无法转换。。。是否需要参数类型“PFIdResultBlock”

Ios 无法转换。。。是否需要参数类型“PFIdResultBlock”,ios,heroku,parse-server,Ios,Heroku,Parse Server,在Heroku/mLab上使用parse server的iOS应用程序中,我遇到了云函数的以下问题。 以下是相关代码: PFCloud.callFunction(inBackground: "myCloudFunction", withParameters: ["lastTouch" : theLastTouchStamp]) { (any: Any, error: Error) i

在Heroku/mLab上使用parse server的iOS应用程序中,我遇到了云函数的以下问题。 以下是相关代码:

    PFCloud.callFunction(inBackground: "myCloudFunction",
                         withParameters: ["lastTouch" : theLastTouchStamp]) {
                            (any: Any, error: Error) in
                            print("Now Inside Block (myCloudFunction)")
    }
以下是我从编译器得到的错误消息:

Cannot convert value of type '(Any, Error) -> ()' to expected argument type 'PFIdResultBlock?'
我在网上浏览了一些信息,但尽管我找到了一些相关的帖子;没有什么能让我找到解决办法


有人知道如何解决这个问题吗?

从闭包中删除类型:

PFCloud.callFunction(inBackground: "myCloudFunction", withParameters: ["lastTouch" : theLastTouchStamp]) {
    (value, error) in

    print("Now Inside Block (myCloudFunction)")
}