iOS app crashed after download from Appstore

本秂侑毒 提交于 2019-12-11 21:26:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!