如何在 Xcode 4 中调试“Xcode CodeSign 错误:缺少权利文件 Entitlements.plist”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8315372/
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
How to debug "Xcode CodeSign error: The entitlements file Entitlements.plist is missing" in Xcode 4?
提问by dontWatchMyProfile
Xcode throws this error when I try to CMD+I (Profile) an app on the device. Running is fine. Just profiling doesn't work and gives this error.
当我尝试 CMD+I(配置文件)设备上的应用程序时,Xcode 会引发此错误。跑步没问题。只是分析不起作用并给出此错误。
The path to the Entitlements.plist is bogus and points to a location that doesn't exist anymore.
Entitlements.plist 的路径是伪造的,指向一个不再存在的位置。
I don't want to do Ad-Hoc Distribution, just profile my app on the device.
我不想进行 Ad-Hoc 分发,只需在设备上配置我的应用程序。
I'm finding only Xcode 3.2 related resources about this issue. Has anyone else encountered this with Xcode 4 and found a solution?
我只找到了有关此问题的 Xcode 3.2 相关资源。有没有其他人在 Xcode 4 中遇到过这个问题并找到了解决方案?
回答by Rayfleck
Copy your Entitlements.plist file into the root directory of your project. If you don't have one anymore, then create one and put it in your default bundle. There's (for once) no magic going on here.
将您的 Entitlements.plist 文件复制到项目的根目录中。如果您不再拥有,请创建一个并将其放入您的默认捆绑包中。这里(一次)没有魔法发生。