XCode Build时遇到 .entitlements could not be opened 的问题

遇到错误

在构建成功的XCode工程上,手动打开XCode并Build,遇到以下问题:

The file .entitlements could not be opened. Did you forget to declare this file as an output of a script phase or custom build rule which produces it

打开这个位置发现,文件确实不存在,只存在一个 {项目}Client.entitlements 的文件。

因此,联想到,应该是当前的scheme选择地不对,应该构建出 {项目名}Client,而非构建出 {项目名} 。

解决方法

一、Product ->Scheme ->Edit Scheme菜单 → Run一栏选择XXX Client

二、确保下图蓝框处符合预期:

三、点击Build

相关推荐
1024奇点16 小时前
【仓颉语言入门 · 第24课】
开发语言·ide·开源
黑科技iOS上架18 小时前
iOS framework/dylib动态库定向加固实战
macos·ios·objective-c·cocoa·审核·ios混淆·执行程序差异化
神奇的小猴程序员2 天前
苹果Mac电脑玩我的世界没有版本?用PCL-R即可!
macos
灵韵aura2 天前
macOS 的指令缩写
macos
oooost3 天前
Jupyter Notebook 常用快捷键速查
ide·python·jupyter
yqj2343 天前
ESP32-S3中小智项目优化内容
ide·macos·xcode
阿斌.com3 天前
Visual Studio 2026安装全攻略
ide·visual studio
我要神龙摆尾4 天前
IDEA 阅读插件
java·ide·intellij-idea·idea-plugs·plugs
Mininglamp_27184 天前
Cider量化配置与性能调优:在M系列Mac上压榨Mano-P的每一点推理性能
macos
梦幻通灵4 天前
IDEA 实用快捷键【持续更新】
java·ide·intellij-idea