A little late for the party, but even when all the other answers are correct, they do not answer your question.
Answer: You cannot test production APNS using the debug build.
Debug builds will always receive APNS tokens for the sandbox.
A release (ad-hoc or application store) will always receive APNS tokens.
The logic is to debug an application that needs to be signed using a debug certificate and provisioning profile. This provisioning profile determines which APNS endpoint your application connects to.
source share