iTunes Connect invalid binary

Hi , Are you using a distribution profile / cert ? I have tried removing every mobileprovision and .cer and rebooting etc. but somehow the Editor remembers the mobile provisions ?? I then added the distribution cer and provision again and I got the no matching key cert error. Once I re-added in my dev cert and provision it highlights the dev stuff in green. Now the dev certs are on it has stopped complaining about the certs / key even though I am packaging for shipping/distribution throughout. I’m going to try uploading to Apple and see if I have any problems as it appears to have used the distribution cert and profile. I wonder if deleting all the .cers and provisions helped in someway ? Is there a way to clear all the old mobile provisions out of the editor ?
Regards, Rob