Skip to content

Commit 06ae793

Browse files
committed
ios 16 does not perform right
Signed-off-by: 82Flex <[email protected]>
1 parent a3cd0e1 commit 06ae793

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

XcodeAnyTroll.xm

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,18 @@ static const char *BlockSig(id blockObj)
163163

164164
%hook MIClientConnection
165165

166-
/* iOS 16.4+ */
166+
/* iOS 16.2 */
167167
- (void)_installURL:(NSURL *)url identity:(id)identity targetingDomain:(NSUInteger)domain options:(MIInstallOptions *)options completion:(void (^)(BOOL, NSArray *, id, NSError *))completion {
168168
HBLogDebug(@TAG "installURL:%@ withOptions:%@", url, options);
169169

170+
if (![options isKindOfClass:%c(MIInstallOptions)] || ![options respondsToSelector:@selector(isDeveloperInstall)] || ![options isDeveloperInstall]) {
171+
HBLogDebug(@TAG "Not a developer install, skipping custom handling");
172+
%orig;
173+
return;
174+
}
175+
170176
void (^replCompletion)(BOOL, NSArray *, id, NSError *) = ^(BOOL succeed, NSArray *appList, id recordPromise, NSError *error) {
171-
HBLogDebug(@TAG "completion called with appList:%@ recordPromise:%@ error:%@", appList, recordPromise, error);
177+
HBLogDebug(@TAG "completion called with recordPromise:%@ error:%@", recordPromise, error);
172178
if (!completion) {
173179
return;
174180
}
@@ -207,6 +213,7 @@ static const char *BlockSig(id blockObj)
207213
HBLogDebug(@TAG "installURL:%@ withOptions:%@", url, options);
208214

209215
if (![options[@"PackageType"] isEqualToString:@"Developer"]) {
216+
HBLogDebug(@TAG "Not a developer install, skipping custom handling");
210217
%orig;
211218
return;
212219
}

0 commit comments

Comments
 (0)