我试图通过In App Purchases发布我的新应用版本,但Apple拒绝了两次以下问题:
Your app crashed when we:
Attempted to download one of the In-App Purchases.
This occurred when your app was used:
- Offline
- On Wi-Fi
Run Code Online (Sandbox Code Playgroud)
他们给我发了两个Crash Logs,它给出了以下问题:
第一个崩溃日志:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: EXC_ARM_SP_ALIGN at 0x000000013fd4582e
Highlighted Thread: 1
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x0000000197071aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000196f75998 _dispatch_mgr_thread + 48
Thread 1 name: com.apple.NSURLConnectionLoader
Thread 1:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort …
Run Code Online (Sandbox Code Playgroud) 我正在我的应用程序中实施In App Purchases,我正在使用非消耗性产品.我在我的应用程序中有用户登录,并防止使用applicationUsername属性的不正常活动苹果sugest ,所以我可以发送用户的用户名付款.
一切正常,我可以设置payment.applicationUsername属性,我可以在SKPaymentTransactionStatePurchased状态购买完成后将其恢复.
问题是,当我尝试使用restoreCompletedTransactionsWithApplicationUsername:方法恢复我的事务时,applicationUsername属性返回NULL.
你能帮我吗?