iOS app distribution

I want to deploy my app to iOS 11, hence I updated xCode to 9. I have a provisioning profile for distribution and the required certificate. So when archiving the app I manually select the distribution provisioning profile, but it is giving me error saying.

'Provisioning profile "XC iOS Ad Hoc: xyz" is Xcode managed, but signing settings require a manually managed profile.'

I am not able to figure out how to solve this problem. Since xCode 9 is the latest, there are not many solutions on this problem. Any help regarding this is appreciated.

Can you open the project up in Xcode and try building from there?

It works, thanks.
I also made a build on Ionic, got error and then open on Xcode and it’s working fine :slight_smile: