The team ID is the prefix for example in "ABCDEF12345.com.facebook.app", ABCDEF12345 is the team ID. I can get "com.facebook.app", but how to get the team ?
Asked
Active
Viewed 1,125 times
2 Answers
2
jtool can help you with this.
Using jtool --sig -vv {your macho file}
command to get team id of a mach-o file.

r1cdjuabna1djauk1u
- 435
- 2
- 11
-
Note for beginners like me: First unzip the .ipa file then your mach-o file is `Payload/
.app/ – Nicolas Raoul Jan 27 '23 at 02:58` with both identical. The output will contain something like `Team ID: N398F3HDYP (0x77)`. For me it then fails with `Segmentation fault` but I have what I need.
1
Try this
+ (NSString *)bundleSeedID {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
if (status == errSecItemNotFound)
status = SecItemAdd((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
if (status != errSecSuccess)
return nil;
NSString *accessGroup = [(__bridge NSDictionary *)result objectForKey:(__bridge NSString *)kSecAttrAccessGroup];
NSArray *components = [accessGroup componentsSeparatedByString:@"."];
NSString *bundleSeedID = [[components objectEnumerator] nextObject];
CFRelease(result);
return bundleSeedID;
}