“无效签名,代码对象根本没有签名"错误 [英] "Invalid Signature, code object not signed at all" error

查看:44
本文介绍了“无效签名,代码对象根本没有签名"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经浏览 Stack 数小时以尝试修复此错误,并且尝试了所有我能找到/想到的方法.我正在向 App Store 提交对现有应用程序的更新,在提交我的构建时,我不断收到此错误:

I've been browsing Stack for hours in an attempt to try and fix this error, and I've tried everything I can find/think of. I'm submitting an update to an existing app to the App Store, and upon submitting my build, I keep receiving this error:

无效的签名.代码对象根本没有签名.确保你已使用分发证书而不是分发证书签署了您的应用程序临时证书或开发证书.验证代码Xcode 中的签名设置在目标级别是正确的(其中覆盖项目级别的任何值.此外,请确保您上传的包是使用 Xcode 中的 Release 目标构建的,不是模拟器目标.

Invalid signature. Code object is not signed at all. 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.

我的应用程序无疑使用分发证书签名,安装并选择了正确的配置文件,配置文件包含正确的证书,我删除了该配置文件并创建了一个新的配置文件以尝试修复错误,我已经重新安装证书,重新启动Xcode...多次清理项目,甚至重新启动我的系统;我难住了.

My app is undoubtedly signed with a distribution certificate, the correct provisioning profile is installed and selected, the profile contains the correct certificate, I've deleted the profile and created a new one in attempt to fix the error, I've reinstalled certificates, restarted Xcode... cleaned the project multiple times, even restarted my system; I'm stumped.

另外:当我尝试导出构建时,即使我选择使用我的配置文件并且它似乎是使用我选择的配置文件构建的,但它说它正在使用XC [名称我的个人资料在这里]"配置文件.当我检查门户时,现在有我创建的个人资料,以及一个单独的个人资料,其标题与前面的 XC 相同.即使我在开发人员门户上删除了此配置文件,它也会重新创建吗?这会导致提交错误吗?请帮忙.

Also: When I do attempt to export the build, even though I've selected to use my provisioning profile and it appears to build with my selected profile, it says it's using "XC [Name of my Profile Here]" provisioning profile. When I check the portal, there's now the profile I created, and a separate profile with the same title with the XC in front of it. Even once I delete this profile on the developer portal, it's recreated? Could this be causing the submission error? Please help.

推荐答案

这是我在应用程序中找到导致错误的脚本文件的方法:

Here is the way I found a script file in the app which caused the error:

  1. 归档应用
  2. 从终端打开存档文件夹
  3. 执行以下命令grep -r '#!/' *
  4. 查看命令返回的所有文件
  5. 从复制捆绑资源构建阶段删除所有脚本
  6. 利润

这篇关于“无效签名,代码对象根本没有签名"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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