theos/logos

%property results in compile error

Closed this issue · 3 comments

When adding a %property to a hooked class the compiler throws an error, ex:

For:

@interface SBIconController
@property (nonatomic,retain) NSMutableArray *hiddenIcons;
.....
@end  

%hook SBIconController
%property (nonatomic,retain) NSMutableArray *hiddenIcons;
....
%end

Result:
error: no matching function for call to 'objc_getAssociatedObject' __attribute__((used)) static NSMutableArray * _logos_method$_ungrouped$SBIconController$hiddenIcons(SBIconController * __unused self, SEL __unused _cmd) { return (NSMutableArray *)objc_getAssociatedObject(self, _logos_method$_ungrouped$SBIconController$hiddenIcons); }; __attribute...

Make sure you have an updated Logos (via Theos) because this issue was solved with commit 30803da.

I ran update-theos. Is there a different command I should run?

@uroboro i fixed it by running git submodule update --recursive --remote. update-theos did not update the submodules