简体   繁体   中英

App crashing at startup with iOS 7.0.3

I'm new to the site and I wasn't able to figure out how to comment on an existing post (seems like you need a certain amount of reputation, which I don't yet have).

Since the iOS 7.0.3 update I've had a number of users report that the app crashes on start up (generally after completing an in-app purchase). This thread seems to deal with the same issue:

SKProductsRequest crashing app at startup with iOS 7.0.3

Unfortunately, I'm not able to reproduce the issue on any of my devices (tried a bunch). I was wondering if anyone has had a similar problem, or knows how to reproduce the problem above. My code does request the products on launch, so it seems like that should be the problem, but I'm worried I won't be able to tell if it is fixed because I can't reproduce it internally.

I found some other sites indicating that there could be an issue with certain countries, but I wasn't able to reproduce it by switching my App Store to those countries either.

Thanks!

UPDATE:

I found another thread that seems to be related:

Following in app purchase, app crashing on startup. productIdentifier=nil?

If I force my productIdentifier to be nil, I get a crash (that looks similar). I'm not sure why the productIdentifier would ever be nil though. To prevent the crash I could (should) check for a nil productIdentifier. Does anyone know how transaction.payment.productIdentifier or transaction.originalTransaction.payment.productIdentifier could be nil?

We submitted an update using this question: Following in app purchase, app crashing on startup. productIdentifier=nil?

Everything is solved :)

Thanks a lot !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM