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
It looks like as of Xcode 6 Beta 6 you need to codesign the Swift libraries manually.
codesign --force --verbose --sign 'iPhone Distribution: My Company' Foo.app/
codesign --force --verbose --sign 'iPhone Distribution: My Company' Foo.app/Frameworks/*
I have filed a bug report with Apple and hopefully they will make this happen automatically if you use codesign's --deep option.