Xcode:无法打开文件“XXX.entitlements”,因为没有这样的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45395694/
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
Xcode : The file “XXX.entitlements” couldn’t be opened because there is no such file
提问by Tung Vu Duc
Cause my old machine was damaged so I copied the project to another machine and build&run it but xcode return error :
因为我的旧机器已损坏,所以我将项目复制到另一台机器并构建并运行它,但 xcode 返回错误:
warning: Falling back to contents of entitlements file "XXX.entitlements" because it was modified during the build process. Modifying the entitlements file during the build is unsupported.error: The file “XXX.entitlements” couldn't be opened because there is no such file.
警告:回退到权利文件“XXX.entitlements”的内容,因为它在构建过程中被修改。不支持在构建期间修改授权文件。错误:无法打开文件“XXX.entitlements”,因为没有此类文件。
Does anyone have any suggestions?
有没有人有什么建议?
回答by Museer Ahamad Ansari
回答by rustyMagnet
I hit the same error. When build, Xcode could not find the .entitlements file. The root cause: I caused the error by renaming a folder inside my xCode project.
我遇到了同样的错误。构建时,Xcode 找不到 .entitlements 文件。根本原因:我通过重命名我的 xCode 项目中的文件夹导致了错误。
The fix was to remove the hardcoded path (that Xcode had used).
修复方法是删除硬编码路径(Xcode 使用过的路径)。
回答by Zailyn Tamayo
Is it looking for an Entitlements.plist file?
它是否在寻找 Entitlements.plist 文件?
Maybe delete bin and obj folders and try to rebuild? I'm not too familiar with XCode but this is what I would do on Xamarin iOS.
也许删除 bin 和 obj 文件夹并尝试重建?我对 XCode 不太熟悉,但这就是我在 Xamarin iOS 上要做的。