关于调用+函数

逆向了一个APP,最后发现需要调用 TSStaticTools 的 + (id)sendMessageToDeamon:(id)arg1 msgid:(int)arg2; 函数
然后我写了个tweak

如下

@interface TSStaticTools : NSObject
{
}

  • (id)sendMessageToDeamon:(id)arg1 msgid:(int)arg2;
    @end

attribute((constructor)) void DylibMain()
{
char Message[] = “Message”;
NSString *str = [NSString stringWithFormat:@"{“path”:"%s,0,0,0"}",Message];
[TSStaticTools sendMessageToDeamon:str msgid:2560];

[TSStaticTools sendMessageToDeamon:@"" msgid:2564];

}

编译报错

请问这个是什么问题 我该如何解决?

把声明放到单独的.h文件中试试呢?