Fix YouTube Sign in Issue (credit: level3tjg)

This commit is contained in:
arichornlover 2024-03-13 22:57:08 -05:00 committed by GitHub
parent 8a7bc73881
commit c443c48725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,8 @@
%hook NSBundle %hook NSBundle
- (NSDictionary *)infoDictionary { - (NSDictionary *)infoDictionary {
NSMutableDictionary *info = %orig.mutableCopy; NSMutableDictionary *info = %orig.mutableCopy;
NSString *altBundleIdentifier = info[@"ALTBundleIdentifier"]; if ([self isEqual:NSBundle.mainBundle])
if (altBundleIdentifier) info[@"CFBundleIdentifier"] = altBundleIdentifier; info[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
return info; return info;
} }
%end %end