是否可以缩短临时构建配置文件过期之前的时间?

发布于 2024-10-29 01:15:14 字数 171 浏览 2 评论 0原文

我有一位客户的发票很晚,并承诺给我邮寄一张支票,但他们需要应用程序的新临时版本,因为配置文件已过期。我想要进行新的构建,但为临时配置文件设置更短的到期限制,或者如果他们不付款则能够撤销该配置文件。

是否可以使 Ad Hoc 配置文件的过期时间早于 90 天默认值,或者撤销配置文件是否会禁用 Ad Hoc 构建?

I've got a client who has a very late invoice and has promised to mail me a check, but they need a new Ad Hoc build of the app because the provisioning profile has expired. I'd like to do a new build but set a shorter expiration limit for the Ad Hoc provisioning profile or be able to revoke the profile if they don't pay.

Is it possible to get the Ad Hoc provisioning profile to expire sooner than the 90 day default, or alternatively, does revoking the provisioning profile disable the Ad Hoc build?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

顾挽 2024-11-05 01:15:14

插入对服务器的调用作为第二次身份验证怎么样...有一个带有“是”的文件,如果它保持“是”,则应用程序将运行配置文件的生命周期。如果由于未付款而将其更改为“否”(或任何非“是”),则推送一些模式视图而不具有关闭功能。 (但是,我会考虑根据应用程序的其他功能翻转是/否......例如,如果他们进入飞行模式,那么实际上无法到达是,它会显示块,所以您可能想让它仅在可以得到“否”的情况下显示该块...这样,如果他们去飞机,他们就能够击败它,但也许这会禁用应用程序的其他部分...所以它需要您根据应用程序的功能进行调用

(然后在后续版本的付款后删除此功能)。

What about inserting a call to your server as a second authentication...have a file with "yes", and if it stays "yes" the app will run the life of the provisioning profile. If you change it to "no" (or anything non-'yes') due to non-payment, push some modal view without a dismiss ability. (BUT, I would consider flipping the yes/no depending on the other features of the app...for instance, if they went to airplane mode, so couldn't actually get to the yes, it'd display the block, so you might want to make it only display the block if it CAN get 'no'...so they'd be able to defeat it if they went to airplane, but maybe that would disable other parts of the app...so it'd be a call for you to make based on the function of the app.

(and then remove this function on subsequent builds post-payment)

末骤雨初歇 2024-11-05 01:15:14

你不能。但是您可以向应用程序添加代码,以便在每次启动时检查网站,或者从后台检查网站,告诉它是否继续。

You cannot. But you could add code to your app to check a website each time it's launch or come from background which will tell it to continue or not.

挽手叙旧 2024-11-05 01:15:14

我用他的代码。如果用户更改其设备的日期,这将不起作用,但如果他不更改,那就可以解决问题(请注意,我使用法国日期样式,您可能需要更改它):

/***** Time bombing code to get a demo that only works for a certain period of time *****/
-(BOOL) isDateDeprecated {
    return NO;
    BOOL deprecated = NO;
    // Get today date
   // NSDate* today = [NSDate date];

    // Get limit date date
    NSDateFormatter* frDateFormatter = [[[NSDateFormatter alloc] init] autorelease];
    [frDateFormatter setDateFormat:@"dd:MM:yyyy"];
    NSLocale *frLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"fr_FR"] autorelease];
    [frDateFormatter setLocale:frLocale];

    NSString* LIMIT_DATE_STRING = @"26:06:2011";
    NSDate* limitDate = [frDateFormatter dateFromString:LIMIT_DATE_STRING];
    NSLog (@"Limit value %f %@", [limitDate timeIntervalSinceNow], limitDate);
    if ([limitDate timeIntervalSinceNow] < 0) {
        deprecated = YES;
    }
    return deprecated;
}

-(void) displayNoLaunchingScreen {
    NoLaunchingScreen* noLaunchingViewController = [[[NoLaunchingScreen alloc] initWithNibName:@"NoLaunchingScreen" bundle:nil] autorelease];
    [window addSubview:noLaunchingViewController.view];
}

您只需要在应用程序时检查 isDateDepcerated启动或重新启动,如果为 true,则启动 displayNoLaunchingScreen。

I use his code. This will not work if the user change the date of its device but if he doesn't, that does the trick (note that I use french date style, you may have to change that) :

/***** Time bombing code to get a demo that only works for a certain period of time *****/
-(BOOL) isDateDeprecated {
    return NO;
    BOOL deprecated = NO;
    // Get today date
   // NSDate* today = [NSDate date];

    // Get limit date date
    NSDateFormatter* frDateFormatter = [[[NSDateFormatter alloc] init] autorelease];
    [frDateFormatter setDateFormat:@"dd:MM:yyyy"];
    NSLocale *frLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"fr_FR"] autorelease];
    [frDateFormatter setLocale:frLocale];

    NSString* LIMIT_DATE_STRING = @"26:06:2011";
    NSDate* limitDate = [frDateFormatter dateFromString:LIMIT_DATE_STRING];
    NSLog (@"Limit value %f %@", [limitDate timeIntervalSinceNow], limitDate);
    if ([limitDate timeIntervalSinceNow] < 0) {
        deprecated = YES;
    }
    return deprecated;
}

-(void) displayNoLaunchingScreen {
    NoLaunchingScreen* noLaunchingViewController = [[[NoLaunchingScreen alloc] initWithNibName:@"NoLaunchingScreen" bundle:nil] autorelease];
    [window addSubview:noLaunchingViewController.view];
}

You just need to check isDateDepcrated when you application starts or restarts and if it is true, you launch displayNoLaunchingScreen.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文