theos / logos

Preprocessor that simplifies Objective-C hooking.
https://theos.dev/docs/logos
Other
205 stars 34 forks source link

%property results in compile error #32

Closed wvabrinskas closed 5 years ago

wvabrinskas commented 5 years ago

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...

uroboro commented 5 years ago

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

wvabrinskas commented 5 years ago

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

wvabrinskas commented 5 years ago

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