关于不定参数怎么用Theos来进行hook

需求: 对于不定参数的theos的hook代码怎么写代码
代码如下

#import <Foundation/Foundation.h>

@interface TestClass : NSObject
+ (void)print:(NSString *)firstArg, ... NS_REQUIRES_NIL_TERMINATION;
@end

这样的一个怎么写hook代码
很困惑,求大神指导

va_list

%hook TestClass

  • (void)print:(NSString *)firstArg, … NS_REQUIRES_NIL_TERMINATION
    {
    }
    %end

这样编译不过去