When an invalid provision is used, and a project built, then the provision swapped for a valid one and the project rebuilt with no clean, the change is not reflected and the build will not install.
Steps to reproduce:
1) Create a project in studio
2) Build for device using an invalid provision
3) Build again with new, valid provision
4) Attempt to install on device
Failure with codesign error