ios 可执行文件的签名无效 0xe8008016 - 分发证书
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37020624/
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
The executable was signed with invalid entitlements 0xe8008016 - Distribution certificate
提问by JiteshW
I am getting error:
我收到错误:
The executable was signed with invalid entitlements.
The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).
on DISTRIBUTION CERTIFICATE & PROVISIONING
Profile. Earlier, I was able to install the build using distribution profile, But, now I am not able to do so. It gives above error.
在DISTRIBUTION CERTIFICATE & PROVISIONING
个人资料上。早些时候,我能够使用分发配置文件安装构建,但是,现在我无法这样做。它给出了上述错误。
Below is my entielement contents:
以下是我的 entielement 内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.myapp.xyz</string>
</array>
</dict>
</plist>
I have enabled PushNotification
in my appid.
我已PushNotification
在我的 appid 中启用。
From past 2-3 days, I have gone through many such post on stackoverflow and tried various solutions. But none of them has worked. Things I have done to resolve,
在过去的 2-3 天里,我在 stackoverflow 上浏览了很多这样的帖子,并尝试了各种解决方案。但他们都没有奏效。我为解决所做的事情,
- Created a new cert and provisionf profiles
- Removed old certs from keychains and installed new ones
- Removed old provision profiles from system and installed new ones (Manully and automatically through
Xcode->Preferences->account->view Details-> download all
) Restareted XCode
many times after removing certs adding new ones- Clean and build project
- Cleared derived data
- Kept Provisioning profile on automatic (but it builds with developer provisioning profile, dont know why)
- 创建了一个新的证书和配置文件
- 从钥匙串中删除旧证书并安装新证书
- 从系统中删除旧的配置文件并安装新的(手动和自动通过
Xcode->Preferences->account->view Details-> download all
) Restareted XCode
删除证书后多次添加新证书- 清理并构建项目
- 清除派生数据
- 保持自动配置文件(但它是使用开发人员配置文件构建的,不知道为什么)
According to error, I have matched my provision profile Application services (as per my appID in developer portal) with build capabilites in XCode
. But its not working.
Does that .entitlements
file has to do anything with "Build capabilites"? I tried removing .entitlement
once but no luck.
根据错误,我已将我的配置文件应用程序服务(根据我在开发人员门户中的 appID)与XCode
. 但它不起作用。该.entitlements
文件是否与“构建功能”有关?我尝试删除.entitlement
一次,但没有运气。
UPDATE: I created a new project, New appID (The default ones are enabled. In-app and game center) and new distribution provisioning profile. Still gives same error. :(
更新:我创建了一个新项目,新 appID(默认启用。应用内和游戏中心)和新的分发配置文件。仍然给出同样的错误。:(
回答by Mici
Look into the test target, the team should be the same in both the test target and the main target.
查看测试目标,团队在测试目标和主要目标中应该是相同的。
回答by DJ1
Issue is due to distribution provisioning profile try using development or Ad-Hoc provisioning,Hope it's work ,Good luck
问题是由于分发配置文件尝试使用开发或 Ad-Hoc 配置,希望它的工作,祝你好运
回答by Kishan Bharda
In my case, before the build I have added a key ITSAppUsesNonExemptEncryption
in Info.plist
which may not included in the provisioning profile. After removing ITSAppUsesNonExemptEncryption
from Info.plist
I am able to build successfully.
在我的情况下,构建之前我添加了一个关键ITSAppUsesNonExemptEncryption
的Info.plist
可能不包含在提供个人资料。ITSAppUsesNonExemptEncryption
从Info.plist
我删除后,我能够成功构建。