阻止调用Cordova的参数太多

时间:2017-10-17 13:45:30

标签: xcode cordova

尝试构建存档时出现此错误: enter image description here

我更新到Cordova的最新版本。我应该提到这是我第一次尝试使用x-code构建存档。

这是代码: enter image description here

我认为我的问题是自动修复: enter image description here

1 个答案:

答案 0 :(得分:2)

相反

void (^block)(void) = [gPendingSetUserAgentBlocks objectAtIndex:0];

应该是:

void (^block)() = [gPendingSetUserAgentBlocks objectAtIndex:0];  

这是cordova-ios master。此代码自2016年起未发生变化