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

来源:互联网 发布:丅vb晚上7点播出剧集 编辑:程序博客网 时间:2024/05/22 12:09

项目中有xxx.Entitlements文件,Entitlements其实是一个配置文件,对于一些要开启的app功能,需要使用Entitlements文件来做配置。Entitlements文件管三个东西:iCloud、push notification、App沙盒(ios下app沙盒是自动配置的,并不需要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这个开关关闭再打开,就好啦。。。。

阅读全文
0 0