Skip to content

Commit 8231275

Browse files
committed
Disable fix issue button on iCloud capabilities
Fixes #15
1 parent 7e625f9 commit 8231275

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

FixCode/FixCode.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,22 @@ - (void)swizzleCodeSigningResolution
147147
if (error) {
148148
NSLog(@"Error: %@", error);
149149
}
150+
151+
[objc_getClass("IDEFlightCheckListView") aspect_hookSelector:@selector(_shouldShowResolveButton) withOptions:AspectPositionAfter usingBlock:^(id<AspectInfo> info) {
152+
BOOL result = NO;
153+
[info.originalInvocation getReturnValue:&result];
154+
155+
if (!result) {
156+
return;
157+
}
158+
159+
NSView* view = info.instance;
160+
[self findAndReplaceFixIssueButtonInView:view];
161+
} error:&error];
162+
163+
if (error) {
164+
NSLog(@"Error: %@", error);
165+
}
150166
}
151167

152168
@end

0 commit comments

Comments
 (0)