Have you ever got the error message "App installation failed: Could not inspect application package" when you try to deploy your swift app to your iPhone?
There are many causes but what my issue was was this. I had an info.plist file specified in the "Copy Bundle Resources" section in "Build Phases". Once I removed that, my app installed.
There are also a series of other solutions at this site that may help if you do not have the issue above.
The app would work in the Simulator just not install to the iPhone