I have recently received multiple rejections in recent weeks with the following notice:
We noticed that with a valid receipt installed, your app quits on launch. The Console reports the app "Exited with exit code: 173" and the OS states the app "is damaged and can't be opened." This generally indicates that the app is not verifying its receipt correctly.
Note that not all submissions are exiting in the same place even if the StoreKit and verification code remain unchanged. According to the most recent rejection notice, the app crashes after making a purchase. The notice for the prior rejection, however, states that the app always crashes on launch. Receipt verification is not performed on the initial launch.
I have been unable to replicate this issue. I have run countless simulations over the past few weeks and I have yet to receive a such an error. The app never exits at launch and all purchases are successfully verified.
I have run simulations on both debug builds and release builds that were previously rejected. The release simulations were performed on a separate volume using a guest user on a clean install. I am running the latest version of Catalina (10.15.5), although the original rejection occurred before I upgraded from 10.15.4.
A few other notes:
1. Deleing DerivedData did not work.
2. I am using verifyReceipt (https://buy.itunes.apple.com/verifyReceipt), alough it is not used on the initial launch.
3. This app contains a "Price Tier Zero" 14-day trial and an auto-renewable subscription.
4. I have submitted many builds of this app for review over last 13 months, including a few in 2020. Exit code 173 has never been a reason for rejection prior to recent weeks.
Thanks.