I followed your steps and added the Entitlements.plist file to my project. I also added the get-task-allow field and set it to a boolean and unchecked the box. I go to build
Sometimes even if you add Entitlements.plist file you could receive the same error message.
Get your device's unique id number. Then open the provisioning file that you created for your project in Text Edit and check for your device Id in it. If it is not found, then this could be one problem for receiving the error message.