【问题标题】:Branch Integration failed: Team ID mismatch分支集成失败:团队 ID 不匹配
【发布时间】:2018-06-20 14:01:20
【问题描述】:

我在将 Branch 集成到我的应用时遇到错误。在我的AppDelegatedidFinishLaunchingWithOptions 中,我检查:Branch.getInstance().validateSDKIntegration()

我收到了这个错误:

团队 ID 不匹配:'xxxx'

所以我进入Branch+Validator.m 来检查我收到此错误的原因,我发现虽然从服务器获取的所有数据都是正确的,但我在这一行遇到了这个问题:

NSString *clientTeamId = [BNCSystemObserver getTeamIdentifier];

更多信息:

+ (NSString *)getTeamIdentifier {
    NSString *teamWithDot = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppIdentifierPrefix"];
    if (teamWithDot.length) {
        return [teamWithDot substringToIndex:([teamWithDot length] - 1)];
    }
    return nil;
}

这就是我收到此错误的地方,因为 teamWithDot 在这里为零。后来:

if ([serverTeamId isEqualToString:clientTeamId]) {
    alertString = [alertString stringByAppendingFormat:@"%@Team ID matches:\n\t'%@'\n",
        kPassMark,  serverTeamId];
} else {
    testsFailed = YES;
    alertString = [alertString stringByAppendingFormat:@"%@Team ID mismatch:\n\t'%@'\n",
        kFailMark,  serverTeamId];
}

我不知道为什么 clientTeamId 在这里为零,而且我以前从未遇到过这个问题。

有什么想法吗?

【问题讨论】:

    标签: ios objective-c branch.io


    【解决方案1】:

    这里是分公司的杰基。

    能否确保您的构建的团队 ID 与仪表板上的值匹配? 您可以在“启用通用链接”旁边的 iOS 部分的“设置”>“链接设置”下的仪表板中找到它。这应该与您可以在此处找到的团队 ID 匹配:https://developer.apple.com/membercenter/index.action#accountSummary

    请注意,如果您的 Apple App Prefix 与您的 Team ID 不同,您应该使用您的 App Prefix。您的应用前缀可以从 Apple 开发者门户上的应用 ID 中找到。

    如果您仍然遇到问题,请直接通过 integrations@branch.io 与我们联系,并提供您的 Branch 应用 ID 和任何其他可能相关的详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多