File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 11
11
#import " Aspects.h"
12
12
#import " FixCode.h"
13
13
14
+ @interface IDEEnhancedProvisioningSigningIdentity : NSObject
15
+
16
+ @property NSUInteger state; // 0: current, 2: online-only
17
+
18
+ @end
19
+
20
+ @interface IDESigningIdentityActionCellViewContents : NSObject
21
+
22
+ @property IDEEnhancedProvisioningSigningIdentity *signingIdentity;
23
+
24
+ @end
25
+
14
26
@interface NSObject (Shutup)
15
27
16
28
-(void )_autoLayoutViewViewFrameDidChange : (id )arg0 ;
@@ -163,6 +175,16 @@ - (void)swizzleCodeSigningResolution
163
175
if (error) {
164
176
NSLog (@" Error: %@ " , error);
165
177
}
178
+
179
+ [objc_getClass (" IDESigningIdentityActionCellView" ) aspect_hookSelector: @selector (setObjectValue: ) withOptions: AspectPositionAfter usingBlock: ^(id <AspectInfo> info, IDESigningIdentityActionCellViewContents *cellContents) {
180
+ if ([[cellContents signingIdentity ] state ] == 2 ) {
181
+ [self findAndReplaceFixIssueButtonInView: info.instance];
182
+ }
183
+ } error: &error];
184
+
185
+ if (error) {
186
+ NSLog (@" Error: %@ " , error);
187
+ }
166
188
}
167
189
168
190
@end
You can’t perform that action at this time.
0 commit comments