您的位置:首页 > 产品设计 > UI/UE

iOS-Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target "xxx" and build conf

2017-12-14 11:19 721 查看
项目中有xxx.Entitlements文件,Entitlements其实是一个配置文件,对于一些要开启的app功能,需要使用Entitlements文件来做配置。Entitlements文件管三个东西:iCloud、push notification、App沙盒(ios下app沙盒是自动
4000
配置的,并不需要Entitlements,所以这里实际上是指mac下的app沙盒)。

今天我拖动这个文件到另外一个文件夹后,再运行项目报错了,错误如下:

The file "/Users/wy/Desktop/xxx/xxx/xxx.entitlements" could not be opened. Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target "xxx" and build configur


同时你会发现在这个地方会有个错误导致真机运行不起来:



解决办法:



把Push Notiifcations这个开关关闭再打开,就好啦。。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  icloud ios 沙盒 mac app
相关文章推荐