Jump to content

Theos error/Swift


Go to solution Solved by AnotherLurker,

8 posts in this topic

Recommended Posts

Posted

Hello everyone, as some of you may know I'm the dev for k8/10 they recently started using Swift instead of objc. So their classnames are kik._______ which theos/logos does not like. Is there a way I can hook these classes anyway? I've tried googing it and nothing seems to give me what I needed. Here is the theos/logos error. 

Tweak.xm:9:1: error: cannot use dot operator on a type

Thanks for the help :)

Posted

There is no solution for this issue at the moment. Others are having same issue

Well that is unfortunate, would I need to look out for a theos update or a logos update?

Posted

Well that is unfortunate, would I need to look out for a theos update or a logos update?

I believe it would be logos, but I would just check for all of theos 

Posted

Well that is unfortunate, would I need to look out for a theos update or a logos update?

I'm not sure. Maybe they will find another way around it.

Posted

I'm not sure. Maybe they will find another way around it.

 

I believe it would be logos, but I would just check for all of theos 

 

 

Welp thanks for the infomation. Have a good day/night.

Posted

Thank you for your comment.

 

You can hook a swift class in Logos like this:

%hook AnyRandomNameHere
- (id)description {
    return %orig();
}
%end

%ctor {
    %init(AnyRandomNameHere = objc_getClass("ClassNameWithADotHere"));
}

So lets say I'm hookig some.Class it would be 

%hook AnyRandomNameHere
- (id)description {
    return %orig();
}
%end

%ctor {
    %init(AnyRandomNameHere = objc_getClass("some.Class"));
}
-(void)someMethod {
  //code here
}

%end

Correct?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines