如何从App Store下载的ipa文件中获取团队ID?

时间:2016-10-28 06:12:07

标签: ios ipa

团队ID是前缀,例如“ABCDEF12345.com.facebook.app”,ABCDEF12345是团队ID。我可以得到“com.facebook.app”,但是如何获得团队?

2 个答案:

答案 0 :(得分:0)

试试这个

+ (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;
}

https://stackoverflow.com/a/11841898/3901620

答案 1 :(得分:0)

jtool可以帮助您。

使用jtool --sig -vv {your macho file}命令获取mach-o文件的团队ID。