finishTransaction fails on brand new 16" MacBook Pro

For days I've been banging my head against an issue with developing an In-App-Purchase based application on a 2 day old 16" MacBook Pro running macOS 10.15.4.


When my application calls [[SKPaymentQueue defaultQueue] finishTransaction:inTransaction] it gets stuck in an infinte login loop.


This ONLY happens on this brand new 16" MacBook Pro running 10.15.4. It works on a 12" MacBook running macOS 10.15.4 and a (2012) 15" MacBook Pro running macOS 10.14.6.


There's two things here I want to know.

1. I can't find any evidence online of this ever occuring, is there someone who's come across this before and if so, how did you solve it?


2. As it only occurs on this machine, I've tried the following to see if I can fix it (thinking that the machine is a lemon).

a) Boot into "Safe" mode [no change].

b) Run Disk Fist Aid from Recovery [no change].

c) Re-installed the OS from Recovery [no change].

d) Created and tried a new user [no change].

e) Reset PRAM & NVRAM [no change].


There was one change which kinda worked, but is back to failing again this morning. I deleted all the cache relating the App Store that I could and rebooted. I still got stuck in an infintie login loop, but the transaction did actually complete and the item was added to the receipt. However this morning when I tried it again, it's back to just getting stuck in the loop and transaction is never added to the receipt.


There two options left that I can think of right now.


1. Obliterate the drive (using Disk Utility) and with just a clean OS, test my app. I am reluctant to do this because of the increased down time in testing a theory that I suspect will not show any difference.

>calling restoreCompletedTransactions the non-renewable subscriptions appear in the receipt that is then inserted by (I assume) StoreKit.


Was there a receipt before you called restoreCompletedTransactions?

Is there also a non-consumable in the receipt?

Are you getting a call to updatedTransactions after calling restoreCompletedTransactions?


If there is no non-consumable IAP to restore, then restoreCompletedTransactions should not change the receipt.

HI, thanks for responding.

I don't know if the machine came with the supplemental update or not, I know that I didn't install it.


A week after I received this 16" MBP (which showed the problems on day 1), my 12" MacBook (running macOS 10.15.4) also started to show the same behavior, without the supplemental update being installed (I am pretty sure that auto update is switched off).


On Day 11 (of having this machine), DTS confirmed that there is a issue or two (after taking lots and lots of logging information). I have now returned the 16" MacBook Pro, and arranged for ACS to redirect this machine to DTS, as it constantly reproduces both of these issues.


As my app continues to work correctly on macOS 10.14.6 and below, I am now in the process of submitting it for review.

finishTransaction fails on brand new 16" MacBook Pro
 
 
Q