Invalid Signature and best ways to solve

My game is done! It runs fine but I get a few errors when building in Xcode.

When using my developer profile, my game builds and runs perfectly. However I get one warning:

And it totally bombs when I try to do it with my Distribution profile. Having the same warning from above and an error

I really can’t understand what I’m doing wrong. The provisioning profile is installed on my iphone. It has plenty of time left before it expires. I have my developer profile, it’s not install on my iphone. Am I supposed to? I tried but there seemed now way to install it.

Edit–
Would it be easier if I just deleted all my profiles and started fresh?

probably. I am having similar issues with codesign that are causing me all sorts of grief. Starting over fresh seems to be the best bet

Ok, so I fixed a lot of stuff by starting fresh, but there’s still a mixture of problems with certain combinations.

If I do not select the Validate Built Product box while I build and run with my Code Signing Identity set to Devloper, my game builds fine with no warnings or errors.

If I do select the Validate Built Product box while I build and run with my Code Signing Identity set to Devloper, my game builds with 1 warnings and no errors saying:

It will still run fine though.

So I tried selecting the Validate Built Product box with the Code Signing Identity set to Distribution. This is what I thought Apple would surly accept with no binary errors. But after it successfully builds, I get an error during the installation saying

I thought this was supposed to happen, because I read that the distribution wouldn’t be able to be installed.

Apple sends me emails saying I have a Signature Error. What am I doing wrong? I have my provisioning profile, developer certificates, and I selected everything that I was instructed to. Any ideas?