Logos想调用程序原本的单例,已经在.h文件中声明了,但提示找不到类

需求: logos想调用程序原本的单例,已经在.h文件中声明了,但编译时提示找不到类
**日志:
Undefined symbols for architecture arm64:
OBJC_CLASS$_JBOXRouterAPI”, referenced from:
objc-class-ref in JDRoutePluginShow.o
ld: symbol(s) not found for architecture arm64
**代码:

  • (void)updatePlugInTableView:(id)arg1{
    JBOXRouterAPI * router = [JBOXRouterAPI sharedInstance];
    NSString * device_ids = router.userInfo.currentSelectedRouter.device_id;
    [router getRouterPlguinStatusSuccessBlock:device_ids successBlock:^void(NSDictionary *argt){
    MYLog(@“NSDictionary:%@”,argt);
    // arg2(argt);
    } failBlock:^void(NSError *error){

    }];

    NSArray *arr = arg1;
    MYLog(@“updatePlugInTableView:%@”,arr);
    %orig;
    }

header:
@interface JBOXRouterAPI : NSObject
{
_Bool _canAccessActivity;
_Bool _canAccessBenefitActivity;
int _currentFindCount;
int _currentCredits;
JBoxUserInfo *_userInfo;
NSString *_current360key;
NSString *_current360Num;
NSString *_current360Cookie;
NSString *_current360Token;
NSString *_routerMode;
NSString *_apMode;
long long _benefitActivityType;
NSString *_currentRouterUUID;
NSURLSessionDataTask *_findDataTask;
NSDate *_startFindTime;
NSString *_tempBindFeedId;
NSString *_tempBindMac;
NSMutableArray *_arrayDeviceList;
long long _synCount;
}

  • (id)sharedInstance;

%c(“ClassName”)

1 Like

感谢老铁,跑起来🙏