5

I am trying to test in-app purchases on an iOS device. At Create a sandbox tester account it says:

To connect to your development servers and the test environment for the App Store, run a development-signed version of your app and sign in using a sandbox tester account.

The problem is, I don't know what a "devepment-signed version" is, or how to run one.

In Xcode I have one app target, and under "Signing & Capabilities", "All", "Debug" and "Release" have "Automatically manage signing" checked. I cannot find a way to run a "development-signed" version and am not having luck figuring this out by Googling. Does this have to be a physical device, or can it be a simulator?

Dmitry Minkovsky
  • 36,185
  • 26
  • 116
  • 160

1 Answers1

3

When you connect a device to a mac, then build your app and send it down to that device, you are then running a development-signed version. It can't be done on a simulator.

HalR
  • 11,411
  • 5
  • 48
  • 80
  • 1
    So if I connect a physical device and send the app to that device by running in Xcode, that app will be "developer-signed" and I will be able to log in a sandbox user on that device? – Dmitry Minkovsky Apr 10 '20 at 02:57
  • yes. https://help.apple.com/xcode/mac/current/#/dev60b6fbbc7 for more info – HalR Apr 10 '20 at 02:59
  • Yep, look like that did it. I used a physical device, and didn't have to do anything in Settings. When I tried to initiate an IAP, I got a gray pop-up for credentials, and I was able to use my sandbox user to sign in. So, when I run a developer-signed app, the sign-in user with always be bypassed in this way? Having signed in, I am now seeing the user as specified in https://stackoverflow.com/a/60135081/741970, but I was not able to sign in there in the first place. To sign in, I had to initiate a purchase from my app. – Dmitry Minkovsky Apr 10 '20 at 03:51