Application Loader error, binary is invalid

后端 未结 1 1128
不知归路
不知归路 2021-01-14 02:10

When i try to send my app to App Store, i\'m getting this error:

The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing

相关标签:
1条回答
  • 2021-01-14 02:28

    I had the same problem. My solution : Remove arm64 from Valid Architectures, the last IPA that I uploaded didn't have arm64 so I compared the LC_ENCRYPTION_INFO

    I used this command to get LC_ENCRYPTION_INFO

    otool -arch all -Vl YOURAPP.app/YOURAPP | grep -A5 LC_ENCRYP
    

    Result with ARM64:

        
          cmd LC_ENCRYPTION_INFO
          cmdsize 20
        cryptoff  16384
        cryptsize 2375680
        cryptid   0
    Load command 13
    --
              cmd LC_ENCRYPTION_INFO
          cmdsize 20
        cryptoff  16384
        cryptsize 2375680
        cryptid   0
    Load command 13
    --
              cmd LC_ENCRYPTION_INFO_64
          cmdsize 24
        cryptoff  16384
        cryptsize 2801664
        cryptid   0
            pad   0
    

    Result without ARM64

              cmd LC_ENCRYPTION_INFO
          cmdsize 20
        cryptoff  16384
        cryptsize 2375680
        cryptid   0
    Load command 13
    --
              cmd LC_ENCRYPTION_INFO
          cmdsize 20
        cryptoff  16384
        cryptsize 2375680
        cryptid   0
    Load command 13
    

    I hope this will help you, if someone know why remove ARM64 help to resolve this, the response interest me too.

    0 讨论(0)
提交回复
热议问题