Issue

The app works in simulator however when you deploy on the iPhone it fails saying:

Error launching remote program : Security Error

Solution

Make sure the entitlements are correct.

In the file Entitlements.plist set the following:
get-task-allow = TRUE

Build and deploy the app.