小编ciT*_*ger的帖子

函数调用的参数太多,预期为 0,有 2

去年我们从 Pixate 迁移到了 StylingKit

https://github.com/StylingKit/StylingKit是 Pixate 的一个分支,据我所知仍在开发中。

然而,随着 XCode 11 的发布,我们现在遇到了问题,在 pior 版本中它运行良好,但现在无法编译。

    void* callSuper0(id self, Class superClass, SEL _cmd)
    {
        struct objc_super super;
        super.receiver = (__bridge void *)self;
        super.class = superClass != NULL ? superClass : class_getSuperclass(object_getClass(self));
        return objc_msgSendSuper(&super, preprocessSEL(_cmd));
    }

Run Code Online (Sandbox Code Playgroud)
return objc_msgSendSuper(&super, preprocessSEL(_cmd));
Run Code Online (Sandbox Code Playgroud)

抛出错误“函数调用的参数太多,预期为 0,有 2”

我尝试更改一些构建设置,如函数调用的参数过多,预​​期为 0,有 3 个特别是“启用对 objc_msgSend 调用的严格检查为 NO”,但它没有帮助。

任何帮助,将不胜感激。

objective-c ios cocoapods xcode11

6
推荐指数
1
解决办法
2483
查看次数

标签 统计

cocoapods ×1

ios ×1

objective-c ×1

xcode11 ×1