未能以不明原因购买应用程序

时间:2011-07-21 03:33:02

标签: iphone in-app-purchase storekit

我在应用内购买了我的应用并发布了。 但我没有在我的应用程序中购买产品(不是所有时间)。

我有两个问题。

  1. 会发生什么情况?

    我测试了我的应用,但没有发生。 怎么会发生?你有类似的经历吗?

  2. “交易:180000012369078 - 1”是什么意思?

    这是我的设备登录组织者。 成功时,交易的编号为“1” 失败时,交易编号为“2”。 成功与失败之间的格式并不相同。

  3. 暂存我的日志

    成功

    Jul 21 12:06:05 unknown adhoc[4714] <Warning>: transaction: (null) - 0
    Jul 21 12:06:05 unknown adhoc[4714] <Warning>: purchasing
    Jul 21 12:06:18 unknown adhoc[4714] <Warning>: transaction: 180000012369078 - 1
    Jul 21 12:06:18 unknown adhoc[4714] <Warning>: purchased
    

    失败

    Jul 20 19:50:41 unknown adhoc[2202] <Warning>: transaction: (null) - 0
    Jul 20 19:50:41 unknown adhoc[2202] <Warning>: purchasing
    Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Installing: com.apple.itunesstored [itunesstored] (550.58)
    Jul 20 19:50:41 unknown itunesstored[2273] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
    Jul 20 19:50:44 unknown itdbprepserver[2270] <Warning>: Running Create Triggers...
    Jul 20 19:50:46 unknown adhoc[2202] <Warning>: transaction: 70AAEAAE-22DF-4927-A6FA-4ECF4783619D - 2
    Jul 20 19:50:46 unknown adhoc[2202] <Warning>: failed
    Jul 20 19:50:46 unknown adhoc[2202] <Warning>: unkwown
    

    请帮忙。谢谢。

1 个答案:

答案 0 :(得分:0)

购买失败后,请使用打印错误说明 [transaction.error localisedDescription];

它可能会失败,因为wifi连接很弱,并且它使用描述Error : Cannot Connect to iTunes Store来解决。

如果这是错误,请重置设备中的所有设置。我解决了这个问题!