Ios 分支集成失败:团队ID不匹配
我的应用程序的分支集成出现错误。在我的Ios 分支集成失败:团队ID不匹配,ios,objective-c,branch.io,Ios,Objective C,Branch.io,我的应用程序的分支集成出现错误。在我的AppDelegate的didfishlaunchingwithoptions中,我选中:Branch.getInstance().validateSDKIntegration() 我得到一个错误: 团队ID不匹配:“xxxx” 因此,我进入Branch+Validator.m检查为什么会出现此错误,我发现虽然从服务器获取的所有数据都是正确的,但我在这一行遇到了此问题: NSString*clientTeamId=[BNCSystemObserver get
AppDelegate
的didfishlaunchingwithoptions
中,我选中: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
在这里为零,我以前从未遇到过这个问题
有什么想法吗?这里是布兰奇的杰基
请确保生成的团队ID与仪表板上的值匹配好吗?
您可以在“设置>链接设置”下的仪表板中,在“启用通用链接”旁边的iOS部分找到它。这应该与您的团队ID相匹配,您可以在此处找到团队ID:
请注意,如果您的Apple应用程序前缀与您的团队ID不同,则应使用您的应用程序前缀。你的应用前缀可以从苹果开发者门户上的应用ID中找到
如果您继续遇到问题,请直接联系我们integrations@branch.io与您的分支应用程序ID和任何其他可能相关的详细信息