当前位置: 移动技术网 > 移动技术>移动开发>IOS > IOS真机运行带有Notification Content target的时候证书报错This application or a bundle it contains has the same bun

IOS真机运行带有Notification Content target的时候证书报错This application or a bundle it contains has the same bun

2018年11月25日  | 移动技术网移动技术  | 我要评论

上两篇文章说了本地通知的相关内容,做了测试的推送证书,运行在真机上出现如下问题:
1、第一次报如下错误

this application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. bundle identifiers must be unique.

这里写图片描述

原因是demo的bundle id 与 我们新建的target的bundle id 不能一致,他们是相互独立的

2、修改了target的bundle id,但是出现了如下问题

"this app contains an app extension with an illegal bundle identifier. app extension bundle identifiers must have a prefix consisting of their containing application's bundle identifier followed by a '.'."

这是因为target的bundle id 与app的证书是有关联的,比如你app的bundle id是
com.company.appname,那么你的target的bundle id 应该是com.company.appname.extensionname

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网