I had this problem and it was solved as follows. First, make sure this is not related to the information in info.plist - as indicated in other answers - make sure the Bundle OS Type code parameter is set to APPL . It's not a problem for me.
With Xcode 8 and later, go to developper.apple.com and delete all iOS and iOS provisioning profiles. Then in Xcode go to Settings. Choose your Apple ID. Click to view details. Right-click the Provisioning profiles and delete them directly or open in Finder and delete them.
Close Xcode. Open again. In your project, in general, clear the Automatically manage signing check box. Recheck it so that Xcode creates a new provisioning profile.
Check the signing and make sure to use the new profile as shown below:

Good to go!
Zyntx
source share