I am beta testing an app that has never been submitted to the App Store, and I am trying to test In-App Subscriptions on my app. I am looking for some documentation to get this to work. So far, I have done the following:
- In App Store Connect under this app in the Subscriptions section, I have have created a Subscription Group with a single subscription.
- The status of the subscription is "Ready to Submit" and at the top of the page for that subscription group I see the message "Your first subscription must be submitted with a new app version. Create your subscription, then select it from the app’s In-App Purchases and Subscriptions section on the version page before submitting the version to App Review."
I see where to add the subscription to the app under the App Store section of App Store Connect, but I am not sure how to add this to TestFlight. When I run the app and try to make the purchase, I get the "This item cannot be found" error:
error 12:15:56.241763-0700 storekitd AMSPurchaseTask: [E4F222FA_SK1] Purchase completed with error: Error Domain=AMSErrorDomain Code=305 "Server Error" UserInfo={AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=00008027-000104342E62402E, AMSServerErrorCode=3504, NSLocalizedFailureReason=This item cannot be found., AMSServerAllowed=false, NSLocalizedDescription=Server Error, AMSStatusCode=200, AMSServerPayload={ "cancel-purchase-batch" = 1; customerMessage = "This item cannot be found."; failureType = 3504; "m-allowed" = 0; pings = ( ); }}