ITMS - 90179 Invalid Code Signing / ITMS - 90209 Invalid Segment Alignment

13,789

Solution 1

There seem to be a conflict with both dev and prod certificates. I was finally able to submit following these steps:

(1) go in keychain and delete both certificates (dev & distribution)

(2) go to apple site and download distribution certificate only

(3) install distribution cert only!

(4) export p12 from private key

(5) go to apple and regenerate/download distribution provisioning profile.

From there it worked fine, don't ask why...

Solution 2

Restart the Xcode, it should resolve before trying above suggestions. Its a classic trick which seem to work even today :P

Share:
13,789
Crook
Author by

Crook

Updated on June 13, 2022

Comments

  • Crook
    Crook almost 2 years

    ERROR ITMS - 90179 Invalid Code Signing. The Executable 'Payload/UFO.app/UFO' must be signed with a certificate that is contained in the provisioning profile.

    ERROR ITMS - 90209 Invalid Segment Alignment. The app binary at 'UFO.app/UFO' does not have a proper segment alignment. Try rebuilding the app with the latest Xcode version.

    I've been getting these two errors no matter what I try. I've deleted all my profiles and certificates, remade them and even remade the App ID multiple times and nothing happened and still the same error. I've updated XCode too and still the same errors.

    I used a Wildcard App to create my .ipa file in Flash Pro CC selecting the Apple App Store and tried to publish it through application loader.

    Is there any solution to these two problems? Thanks.

  • voghDev
    voghDev about 9 years
    Why step 5? aren't steps 1..4 supposed to be enough?
  • mika
    mika about 9 years
    I'm just saying what worked for me, no what makes sense to me :)
  • voghDev
    voghDev about 9 years
    heheh thanks anyway :-) I solved it they way I wrote in this thread
  • Naloiko Eugene
    Naloiko Eugene almost 8 years
    I've also cleaned up the project several times after restart in addition. And it worked.