iOS Storekit导致实时应用崩溃

时间:2023-01-12 21:47:50

I get this crash in my live app for my IAP. I'm stressed out by it since it's a missed revenue opportunity. Can anyone help me understand this crash report?

我在我的IAP实时应用程序中遇到此崩溃。我很紧张,因为这是一个错失的收入机会。任何人都可以帮我理解这个崩溃报告吗?

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010
 raw
0
libobjc.A.dylib 
objc_msgSend + 16
1
StoreKit    
__34-[SKProductsRequest _handleReply:]_block_invoke + 52
2   libdispatch.dylib   
_dispatch_call_block_and_release + 24
9   UIKit   
UIApplicationMain + 204
10
MyApp   
main.m line 14
main
11
libdispatch.dylib   
(Missing)

1 个解决方案

#1


0  

Not much to go on there.

去那儿不多。

0 libobjc.A.dylib   objc_msgSend + 16
1 StoreKit          __34-[SKProductsRequest _handleReply:]_block_invoke + 52

If I were you I'd look carefully at your SKProductRequestDelegate's -productRequestDidReceiveResponse: method. Although it doesn't show up in the backtrace, sometimes they aren't 100% reliable.

如果我是你,我会仔细查看你的SKProductRequestDelegate的-productRequestDidReceiveResponse:方法。虽然它没有出现在回溯中,但有时它们并非100%可靠。

The other thing to look for is to see if that delegate has somehow been released. Crashing in objc_msgSend is frequently due to that. Are you using ARC?

要查找的另一件事是查看该委托是否以某种方式被释放。 objc_msgSend中的崩溃通常是由于这一点。你在用ARC吗?

Here's an article that should be on every ObjC coder's reading list:

这是一篇应该在每个ObjC编码器的阅读清单上的文章:

http://sealiesoftware.com/blog/archive/2008/09/22/objc_explain_So_you_crashed_in_objc_msgSend.html

#1


0  

Not much to go on there.

去那儿不多。

0 libobjc.A.dylib   objc_msgSend + 16
1 StoreKit          __34-[SKProductsRequest _handleReply:]_block_invoke + 52

If I were you I'd look carefully at your SKProductRequestDelegate's -productRequestDidReceiveResponse: method. Although it doesn't show up in the backtrace, sometimes they aren't 100% reliable.

如果我是你,我会仔细查看你的SKProductRequestDelegate的-productRequestDidReceiveResponse:方法。虽然它没有出现在回溯中,但有时它们并非100%可靠。

The other thing to look for is to see if that delegate has somehow been released. Crashing in objc_msgSend is frequently due to that. Are you using ARC?

要查找的另一件事是查看该委托是否以某种方式被释放。 objc_msgSend中的崩溃通常是由于这一点。你在用ARC吗?

Here's an article that should be on every ObjC coder's reading list:

这是一篇应该在每个ObjC编码器的阅读清单上的文章:

http://sealiesoftware.com/blog/archive/2008/09/22/objc_explain_So_you_crashed_in_objc_msgSend.html