I have searched around SO and other places. I have only found older versions of this answer that don\'t seem to work any more, and tons of other stuff that isn\'t even rele
I ended up finding a working solution for xcode 8. Here is the step by step
Xcode>preferences>locations>derived data>custom>your desktop
xcodebuild -workspace (or -project) [workspacename.xcworkspace] -scheme [Schemename] -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NOPayload (this folder name is case sensitive and much match verbatim)Payload folder and rename it to app_name-version_number.ipaBoom. Done.