xcode 可执行文件的签名无效

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17297276/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:32:46  来源:igfitidea点击:

The executable was signed with invalid entitlements

iosxcodedebugging

提问by ani

I am getting the error "The executable was signed with invalid entitlements." while running my app using the provisional profiles created using particular id(clients id). I have tried with another ids(our development ids) then it is working fine. I don't know whats wrong with me...Can any body suggest me a solution?

我收到错误“可执行文件的签名无效。” 在使用使用特定 ID(客户端 ID)创建的临时配置文件运行我的应用程序时。我尝试过使用另一个 ID(我们的开发 ID),然后它工作正常。我不知道我有什么问题......任何机构都可以建议我解决方案吗?

I found many solutions regarding the .plist file changes and bundle identifier name changes etc ..But I have tried the same project using alternative id,but it is working.So i think the problem will not be with the project. Thanks in advance

我找到了很多关于 .plist 文件更改和包标识符名称更改等的解决方案。但我已经尝试使用替代 id 的同一个项目,但它正在工作。所以我认为问题不会出在项目上。提前致谢

回答by ColossalChris

This quite often happens when updating XCode to a new version. If you are sure that your device has the correct provisioning profile and that the code signing section of your app has the correct information then sometimes what works is to restart XCode so that it can clear any derived data from your project that conflicts. Worked for me

将 XCode 更新到新版本时经常会发生这种情况。如果您确定您的设备具有正确的配置文件并且您的应用程序的代码签名部分具有正确的信息,那么有时有效的方法是重新启动 XCode,以便它可以清除您项目中存在冲突的任何派生数据。对我来说有效

回答by Buntylm

possible reason as you are trying to profile iOS App where the iOS device is not included in Your iOS provisioning profile and please follow this link TROUBLESHOOTING GUIDE CODE SIGNING ENTITLEMENTS

可能的原因,因为您正在尝试配置 iOS 应用程序,其中 iOS 设备未包含在您的 iOS 配置文件中,请点击此链接疑难解答指南代码签名权利

回答by sanjeev sharma

Go to the project settings and make sure the provisioning profile is one that matches your current application identifier

转到项目设置并确保配置文件与您当前的应用程序标识符匹配

Then go to the target settings and make sure that it is the same setup.

然后转到目标设置并确保它是相同的设置。

回答by Dan

I would be willing to bet that the provisioning profile you are using does not have your cert/keychain private key pair associated with it. I would suggest posting what Keychain Access looks like for the cert tied to the provisioning profile you're trying to sign the code to.

我愿意打赌您正在使用的配置文件没有与之关联的证书/钥匙串私钥对。我建议发布与您尝试签署代码的配置文件相关联的证书的 Keychain Access 是什么样的。

回答by Deepukjayan

I got you!!

我接到你了!!

I believe you haven't installed the .cer. Login to your member centre --> certificates --> Development.

我相信你还没有安装 .cer。登录您的会员中心--> 证书--> 开发。

Now download and install certificates of type "iOS Development"

现在下载并安装“ iOS Development”类型的证书

Now come back to your xcode. Select buil settings as usual ans Vioala... :)

现在回到你的 xcode。像往常一样选择构建设置和 Vioala... :)