问题
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?
回答1:
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.
回答2:
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.
回答3:
With given debug logs this is clear , this problem is related to your in-app purchase. You should review your in-app purchase implementation.
来源:https://stackoverflow.com/questions/18890386/ios-app-crashed-after-download-from-appstore