If you are not planning to release on AppStore and only creating an ad hoc build for testing, then do the following:
In Xcode 7, Goto Product -> Scheme -> Edit Scheme From the left menu select "Archive" and Select "Distribution" from the "Build Configuration" drop down.