Embedded binary's bundle identifier is not prefixed with the parent app's bundle

964 阅读1分钟

在网上下载别人的demo,真机调试的时候报错 错误信息提示说嵌入式二进制文件的 bundle identifier 没有使用父应用的 bundle identifier 前缀。可以从以下步骤排查

1.确保各个绑定的boundle id 一致 com.company.appname com.company.appname.exten com.company.appname.watchKit com.company.appname.watchKit.exten

2.查看各个info.Plist里面的boundle id 和关联的boundle id ,改成对应一致。比如boundle identifyier,WKCompanionAppBundleIdentifier,NSExtension,这些地方查找,有就改没有就不用改

3.clean 一下项目

4.重启一下xcode

5.百分之99可以解决问题