iOs upload error

Hi everyone! I’ve been working on a project in unreal engine 4.9 in windows, and have been trying to upload it with app uploader in Mac. Every time i try it gives me the same error:

Error itms-90035: invalid signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose “Clean All” in Xcode, delete the “build” directory in the Finder, and rebuild your release target. For more information, please conult…

The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message.

Maybe is not related, but i’ve been having problems with a plugin (Substance designer). If uninstalled, the program doesn’t compile.

Thank your for your help

What kind of provisioning profile are you using? Development, AdHoc or Distribution? Also is your certificate Development or Distribution?

Also with the Substance designer plugin, that thing gave me issues to the days!! You probably have content in your project that makes use of that. If at all possible to remove that content (like static meshes that use materials made using Substance).

For my case,I got this error after selecting “Generic iOS Device” when archiving, however i plugged in my iPhone and selected it, then archived, I got no errors this time.(I also cleaned both Shift+cmd+k and Shift+alt+cmd+k before archiving)