iOS - In App Purchase突然停止工作 [英] iOS - In App Purchase suddenly stopped working

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

问题描述

我在一年多前为客户开发了一个应用程序。
这个应用程序有In App Purchases,我的客户一直在从使用该应用程序的客户那里收钱,我可以在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是相同的。它们是 pro3 pro6

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发布(配置文件)已过期!
可以吗?如何解决?

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 - In App Purchase突然停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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