Xcode gives me this warning when I build the app for release.
Application failed codesign verification. The signature was invalid, or it was not signe
It looks like your target is "Development" but Xcode applied some of distribution settings to it, so the warning simply means your ad-hoc build has no valid AppStore submission certificate. Go to your target settings, choose the Release configuration and uncheck "Validate Built Product" option.