The other day in XCode 10.0, an error appeared when I uploaded the application to https://itunesconnect.apple.com (TestFlight).
The error completely looked like this ERROR ITMS-90174: “Missing Provisioning Profile – iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision.”.
The problem was solved as follows File -> Project Settings. In the popup window Build System -> Legacy Build System.
At the moment this one suits me. Maybe later I will find how to use New Build System