Reputation: 2043
My approved app crashed after it was downloaded from the Appstore. Baring all other circumstances, I am wondering if it's due to the fact that I have yet to get approval from Facebook for using their login mechanism and xmpp chat?
Hope someone can verify this?
Upvotes: 0
Views: 318
Reputation: 2139
With given debug logs this is clear , this problem is related to your in-app purchase. You should review your in-app purchase implementation.
Upvotes: 1
Reputation: 5616
After reading your comment on Nikolai Ruhe's answer (which is correct), it is quite obvious that the reason for the crash is that you don't check that response.products
contains any products at all before accessing its first element.
It still should not happen that you're not receiving the correct product in the response (especially if it always worked and the in app purchase product was accepted with the app), but you didn't manage this case and that is what's causing the crash.
Upvotes: 2
Reputation: 81868
No, you built the bug yourself: In your method -[AppDelegate productsRequest:didReceiveResponse:]
you are accessing an array with an index out of bounds.
Check the system log to see what the actual bad index is.
Upvotes: 7