How do I codesign a Swift app via the commandline?

I am attempting to run an enterprise signed build of my Swift app on a real phone running iOS 7.1. If I create the enterprise signed app via the Xcode interface, the app works perfectly. If I crea...