美文网首页
TestFlight灰度测试方案

TestFlight灰度测试方案

作者: 古月思吉 | 来源:发表于2019-07-11 10:53 被阅读0次
TestFlight灰度测试方案.png
  • 核心代码:
- (void)openBetaUrl {
    // 公开链接的地址
    NSString * betaUrl = @"testflight.apple.com/join/MIBiPIhj";
    NSString * url = nil;
    NSURL * customAppURL = [NSURL URLWithString:@"itms-beta://"];
    if ([[UIApplication sharedApplication] canOpenURL:customAppURL]) {
        url = [NSString stringWithFormat:@"itms-beta://%@",betaUrl];
        customAppURL = [NSURL URLWithString:url];
        [[UIApplication sharedApplication] openURL:customAppURL];
    } else {
        url = [NSString stringWithFormat:@"https://%@",betaUrl];
        customAppURL = [NSURL URLWithString:url];
        [[UIApplication sharedApplication] openURL:customAppURL];
    }
}

相关文章

网友评论

      本文标题:TestFlight灰度测试方案

      本文链接:https://www.haomeiwen.com/subject/worrkctx.html