I've tried all the other answers, but (surprisingly) none of them have worked for me. In the end, I figured my development account has to be "Trusted" by the device for it to run.
This can be configured in your iOS device, under Settings > General > Device Management > Developer App
. You should ensure your account is marked as trusted.