I created an archive for any project in Xcode 9. Then I try to create an ipa file (either development or ad-hoc). I first try to export the archive. Then I select either Dev
Expired provision profile was the cause of this same issue. After renewal, everything is now working.