iOS-应用内购买突然停止工作 [英] iOS - In App Purchase stopped working suddenly

查看:72
本文介绍了iOS-应用内购买突然停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一年多以前,我已经为客户开发了一个应用程序. 该应用程序具有应用程序内购买"功能,并且我的客户一直在从使用该应用程序的客户那里收钱,我可以在iTunesConnect中清楚地看到这一点.上次有人买东西是在11月.

I have developed an application for a customer over a year ago. This app has In App Purchases, and my customer have been receiving money from her clients that use the app, I can clearly see that in iTunesConnect. Last time someone bought something was in november.

但是现在突然,这已经停止工作了!!!而且我不明白为什么. 我已经检查了XCode中的Bundle Identifier,它在AppStore中匹配了该标识符. 产品名称也一样.

But now all of a sudden, this has stopped working!!! And I don't understand why. I've checked the Bundle Identifier from XCode which maches the one in AppStore. Also the product names are equal.

几分钟前,我从AppStore下载了该应用程序,并使用命令idevicesyslog来查看所有控制台输出.问题是这样的:

I downloaded the app a couple of minutes ago from AppStore and used the command idevicesyslog in order to see all the console output. And the problem is this:

-(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
NSArray *products = response.products;

   if (products.count != 0)
   {
       self.product = products[0];
       NSLog(@"pro: %@", self.product.localizedTitle);
        SKPayment *payment = [SKPayment paymentWithProduct:self.product];
        [[SKPaymentQueue defaultQueue] addPayment:payment];
    } else {
        self.pro1Btn.enabled = YES;
        self.pro2Btn.enabled = YES;
        NSLog(@"pro: not found"); // THIS WAS SHOWN IN CONSOLE OUTPUT
    }
}

因此从没有找到该产品,但是我可以在iTunesConnect中清楚地看到该产品ID相同.它们是pro3pro6.

So the product is never found, but I can clearly see in iTunesConnect that Product ID are the same. They are pro3 and pro6.

请帮助!

我现在可以看到iOS发行版(Provisioning Profile)已过期! 可以吗?以及如何解决?

I can now see the iOS Distribution (Provisioning Profile) has expired! Can it be that? And how to solve it?

推荐答案

显然,协议,税收和银行业务"中的合同已过期.所以我要求他们两个.

Apparently, the contracts in "Agreements, Tax, and Banking" had been expired. So I requested both of them.

这篇关于iOS-应用内购买突然停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆