The build line:
xcrun -sdk iphoneos PackageApplication -v Myapp.app -o Myapp.ipa --sign The Hash of my Signing Identity goes here --embed MyProvisioningProfile.mobileprovision
It compiles into an IPA file, but when I try to transfer it to my device I get a "The application does not have a valid signature" error.
If I use that Certificate and that Mobile Provision in the XCode UI it works perfectly. I am unsure what the problem is.