最近在重签一个APP后,遇到的奇怪提示。

重签的是TG这个app,用xcode脚本重签,结果一运行就黑屏,xcode下提示。有没有朋友有签重TG的经验,可否分享一下?
2022-01-08 12:52:39.446259+0800 *****[47037:5211074] [Warning] Trying to set delaysTouchesBegan to NO on a system gate gesture recognizer - this is unsupported and will have undesired side effects

2022-01-08 12:52:39.452006+0800 *****[47037:5211074] [unspecified] container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled

Architecture: arm64

Embedded signature, length: 4864

2022-01-08 12:52:39.457749+0800 *****[47037:5211074] [Presentation] Attempt to present <UIAlertController: 0x11e816a00> on <_TtC7DisplayP33_83BFFE1175986BF91B85BE8424379B0424WindowRootViewController: 0x11dd07830> (from <_TtC7DisplayP33_83BFFE1175986BF91B85BE8424379B0424WindowRootViewController: 0x11dd07830>) whose view is not in the window hierarchy.

用ios APP singer单独签,签出来的也是黑屏。倒是不闪退。群里的老铁们说这个是开源的。不会加什么签名验证之类的吧

#import <CaptainHook/CaptainHook.h>

/* fix blank screen */
CHDeclareClass(NSFileManager);
CHOptimizedMethod1(self, NSURL *, NSFileManager, containerURLForSecurityApplicationGroupIdentifier, NSString *, groupIdentifier) {
NSString *sandboxDocumentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
[self createDirectoryAtPath:[sandboxDocumentsPath stringByAppendingPathComponent:@“OrigAppGroup”] withIntermediateDirectories:YES attributes:nil error:nil];
return [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/OrigAppGroup", sandboxDocumentsPath]];
}

/* fix “The application is missing required entitlement com.apple.developer.icloud-services” */
CHDeclareClass(CKContainer);
CHOptimizedMethod1(self, id, CKContainer, _initWithContainerIdentifier, id, arg1){
return nil;
}

CHConstructor {
@autoreleasepool {
CHLoadLateClass(CKContainer);
CHHook(1, CKContainer, _initWithContainerIdentifier);

CHLoadLateClass(NSFileManager);
CHHook(1, NSFileManager, containerURLForSecurityApplicationGroupIdentifier);

}
}

2 Likes

你的描述文件没有加AppGroup

感谢老铁!666

大佬,查了下记录,您居然回复了我两条提问,谢谢!可否加您个联系方式?