Skip to content
Guest Big Announcement

Theos error/Swift

Featured Replies

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 :)

Solved by AnotherLurker

  • Author

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?

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 

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.

  • Author

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.

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.