权利无效:在设备上安装临时版本时出错 [英] Entitlements are not valid: Error while installing Ad Hoc build on Device

查看:57
本文介绍了权利无效:在设备上安装临时版本时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的应用程序创建了一个临时构建.我试图将其安装在设备上,但错误消息如下:由于授权无效,因此应用XXX无法安装在设备YYY上.在此之前,我使用同一台机器成功完成了许多构建.但是我不知道现在发生了什么.我搜索了很多解决方案.但是到处都是这样的解决方案:

I made an Ad Hoc build for my application. I tried to install it on my device but error message is coming like this: The application XXX is not able to install on the device YYY because entitlements are not valid. I made many builds successfully before this using the same machine. But I don't know what is happening now. I searched for a solution a lot. But everywhere the solution is like this:

  1. 重新启动iPhone和机器
  2. 在代码签名权利上添加Entitlements.plist.

我尝试了许多方法,但没有希望.如果您知道解决方案,请提供帮助.

I experimented many methods but no hope. Please help if you know a solution for this.

推荐答案

在Lion上升级到XCode 4.5(分发版本)后,我遇到了同样的问题,

I had the same issue after an upgrade to XCode 4.5 (distribution build) on Lion,

选择目标,然后在摘要"窗格中转到权利"部分,选中权利"复选框,然后从下拉列表中选择目标,这将创建一个TARGET_NAME.entitlements文件,现在在您的项目中进行清理然后重新构建

Select your target and in the Summary Pane Go to the Entitlements Section Check the check box that says "Entitlements" and select your target from the drop-down, this will create a TARGET_NAME.entitlements file in your project now do a clean and build again

好像升级到4.5或从4.5降级会破坏分发配置文件的身份.

Looks like the upgrade to 4.5 or downgrade from 4.5 breaks the distribution profile identity.

如果之后以低于4.5的XCode运行项目,则可能必须从项目中删除此新创建的TARGET_NAME.entitlements文件.

If you run your project in an XCode lower than 4.5 after this you might have to delete this newly created TARGET_NAME.entitlements file from your project.

希望这对某人有帮助:)

Hope this helps someone :)

这篇关于权利无效:在设备上安装临时版本时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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