MKStoreKit
MKStoreKit copied to clipboard
App crashes only in Release configuration
Hi! App crashes only in "Release" configuration, not in "Debug". Application Specific Information: ** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: SKOrigBundleRef)'
Application Specific Backtrace 1:
0 CoreFoundation 0x1861c259c
Whats wrong? Thanks.
It seems there's bug with saving "original application version", as a workaround add check if app version was returned correctly, fix MKStoreKit.m line 331 to:
NSString *originalAppVersion = jsonResponse[@"receipt"][@"original_application_version"];
if (originalAppVersion)
[self.purchaseRecord setObject:originalAppVersion forKey:kOriginalAppVersionKey];
[self savePurchaseRecord];
Thank you!
Why is this closed since the workaround is not on the main code ? I have this problem too...
I deleted app from the App Store after release with the same problem.
Had the same issue. Occurs on TestFlight beta (which is technically a Release version), so that may be a good way to test the fix without having to risk testing on the App Store.
I have another question please help me
I am currently working with Auto-renewbalae subscription.My problem is that after completing successful purchasing i print the purchase details.but it return null.
The Purchase details is like that
Purchased/Subscribed to product with id: com.cName.aName.Auto purchaseRecord { " com.cName.aName.Auto" = "null"; }
When am trying to call expiryDateForProduct ,This will crash due to Null value
I am not calling any refreshAppStoreReceipt method from any where
Let me know why this is happening,Please help me
Thanks
Thanks for the confirmation about Testflight @michaelpatzer! A ton of my testers have been experiencing this.
I'm happy to have a fix, but bummed I couldn't catch it earlier. @MugunthKumar would you consider finding a collaborator to help catch-up on PRs if you're too busy?