Just to make sure I understand correctly… You are saying that when you try to launch the WDA project from XCode it gives you an error that says something about the signing certificate and provisioning profile being mismatched? As opposed to “Device isnt in Provisioning Profile”?
Before I go further, I will point out that I really hate the Apple iOS Developer certificate mechanism. While I understand the need for security and such, the process is always confusing and poorly documented… It makes it difficult to get to the bottom of what is causing your issue…
That said, a few more questions may clear some things up… Are you able to launch any app (WDA or anything you have source code for) on a simulated iOS device? If no, I think the process of your Apple Developer Certificate on apple.com -> Code Signing certificate in Keychain on your local -> XCode is messed up somewhere. If you can run something then I am pretty sure that means XCode recognizes your dev code signing certificate properly. The next part is the provisioning profile which, as I understand it, gives a definition of what devices your app can run and also, somehow needs to be linked to the above certificate… This needs to be correct in order to load an app onto a physical device…
This is setup on apple.com and I think it is supposed to be mostly automatic in XCode (I havent done this in a while)… I apologize that I cant get into the specifics here, it has been over 6 months since I have touched an Apple machine and I am working from memory… Plus I am a little “Friday afternoon Brain Fried” at the moment… You may be able to get some more information out of the Apple docs but I have never found them to be clear and abundantly helpful: https://help.apple.com/xcode/mac/current/#/dev60b6fbbc71
At this point I cant say for sure what is going on without looking over your shoulder… Apple error messages are not very descriptive at times… You might have the wrong team selected in XCode, the provisioning profile you are trying to use may just need to be re-downloaded… maybe one of your many certificates expired and you havent noticed yet (all things that have happened to me in the past). If you want to post a bunch of screenshots and logs, I will still be happy to try and help
All that said, in the past, I have found that it is sometimes easier just to start over from the beginning with these Apple certs and profiles… Its very easy to miss a detail when setting all of this up and one out of place selection causes hard to understand issues. As someone who has been developing iOS apps off and on for almost a decade, I cant tell you how many times I have run into a signing error in XCode and only got around it by frantically trying everything I could think of and merely stumbling upon a solution.