代码签名无效 [英] Code Signature Invalid
问题描述
最近,我无法在Xcode中运行某些应用程序.他们会建立,然后退出而不露面.因此,我尝试进入Debug文件夹并手动启动应用程序.我最终从macOS收到错误报告,告诉我异常类型为代码签名无效".我还在Xcode中运行了一个测试,它告诉我代码根本没有签名,并且退出代码1失败了.我知道我的Xcode项目中的代码签名一定有问题,但是我不知道如何解决此问题.它影响了我在Mac App Store上拥有的两个应用程序,因此我猜想它与证书有关.请让我知道如何解决此问题.我正在用Xcode 8制作macOS应用程序.我非常需要解决此错误,因此,如果您有任何想法,请发布它们,如果它们起作用,我会立即向您授予+50代表.谢谢!
Recently, I wasn't able to run some of my apps in Xcode. They would build, then quit without showing up. So I tried going into the Debug folder and starting the app manually. I ended up getting an error report from macOS telling me that the exception type was "Code signature invalid". I also ran a test in Xcode and it told me that the code wasn't signed at all, and that it failed with exit code 1. I know that something must be wrong with my code signing in my Xcode projects, but I'm not sure how to fix this. It's affecting both applications that I have on the Mac App Store, so I'm guessing it has to do with certificates. Please let me know how I could fix this. I'm making a macOS app with Xcode 8. I desperately need this error fixed so if you have any ideas please post them and if they work I will promptly award you the +50 rep. Thanks!
这是我在一个项目中遇到的错误的屏幕截图.
Here is a screenshot of the error I'm getting on one of the projects.
推荐答案
奇怪的是,对Xcode 8.1的更新已将其修复!因此,这个故事的寓意是:如果有可用的更新,请尝试进行更新,看看是否可以解决任何代码签名问题!
Strangely enough, the update to Xcode 8.1 fixed it! So the moral of the story is: try updating if an update is available and see if that fixes any code signing problems!
感谢大家提供有用的答案.我确定他们会解决某人的问题.
Thanks everyone for your helpful answers. I'm sure they'll solve someone's problem.
这篇关于代码签名无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!