设置权利文件-可执行文件已使用无效的权利进行签名 [英] Setting an Entitlements file - The executable was signed with invalid entitlements

查看:100
本文介绍了设置权利文件-可执行文件已使用无效的权利进行签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Xcode中检查"Use Entitlements File"时,尝试在手机上运行我的应用程序时出现以下错误:

As soon as I check "Use Entitlements File" in Xcode, I get the following error when I try to run my app on my phone:

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.

我正在尝试使iCloud正常运行,似乎在步骤1上失败了.我可以在仿真器中运行,但不能在通过管理器自动配置的设备中运行.

I'm trying to get iCloud working, and it seems like I'm failing on step 1. I can run in the emulator, but not in the device I provisioned automatically through the organizer.

我在这里做错了什么?

推荐答案

首先,您需要为您的App的ID进行特定的配置,使其与包的ID相匹配.即使仅用于开发,通用的Team Provisioning也无法测试iCloud.

First of all, you need to have specific provisioning for your App's ID, matching its bundle ID. Even if it's only for development, generic Team Provisioning cannot work to test iCloud.

如果在未启用iCloud的情况下发布了应用程序ID,并且之后进行了更新,则还必须更新相关的资源调配.

If the App ID had been issued without iCloud enabled, and updated afterward, related Provisioning must be updated also.

通常,从Xcode的组织者进行配置更新无法带来正确的结果.在这种情况下,建议您尝试直接从iOS开发者网站下载更新的配置.

Often, provisioning updating from Xcode's organizer fails to bring the right one. In this case, I suggest you to try to download updated provisioning directly from iOS Developer Website.

这篇关于设置权利文件-可执行文件已使用无效的权利进行签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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