I'm having the exact same issue. The documentation says, "Your development-signed app uses the sandbox environment when you sign in to the App Store using a Sandbox Apple ID".
Two requisite conditions: a development-signed app and being signed in with a sandbox apple id. Sounds simple but there must be something missing because I can't seem to end up in any scenario besides XCode test env or production either.