If you are having problems with xcodebuild failing to export your apps with either Swift or Watch Kit support here's the solution, with a handy custom script.
How to distribute multiple builds of your iOS app, such as stable, QA and development builds, via TestFlight.