应用程序加载器错误,二进制无效 [英] Application Loader error, binary is invalid

查看:38
本文介绍了应用程序加载器错误,二进制无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将我的应用发送到 App Store 时,我收到此错误:

二进制文件无效.LC_ENCRYPTION_INFO 加载命令中的加密信息丢失或无效,或者二进制文件已加密.这个二进制文件似乎不是用 Apple 的链接器构建的.

我不知道我的应用程序中的错误在哪里

解决方案

我遇到了同样的问题.我的解决方案:从有效架构中删除 arm64,我上传的最后一个 IPA 没有 arm64,所以我比较了 LC_ENCRYPTION_INFO

我用这个命令得到了 LC_ENCRYPTION_INFO

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

ARM64 的结果:

<预><代码>cmd LC_ENCRYPTION_INFOcmdsize 20加密货币 16384加密大小 2375680cryptid 0加载命令 13——cmd LC_ENCRYPTION_INFOcmdsize 20加密货币 16384加密大小 2375680cryptid 0加载命令 13——cmd LC_ENCRYPTION_INFO_64cmdsize 24加密货币 16384加密大小 2801664cryptid 0垫 0

没有 ARM64 的结果

 cmd LC_ENCRYPTION_INFOcmdsize 20加密货币 16384加密大小 2375680密码 0加载命令 13——cmd LC_ENCRYPTION_INFOcmdsize 20加密货币 16384加密大小 2375680密码 0加载命令 13

我希望这会帮助你,如果有人知道为什么删除 ARM64 有助于解决这个问题,我也很感兴趣.

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 or invalid, or the binary is already encrypted. This binary does not seems to have been built whit Apple's linker.

i don't know where is the error in my app

解决方案

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.

这篇关于应用程序加载器错误,二进制无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆