1、可以先 command + option+ shift + k 清理

2、如果error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.

     是因为TARGETS中的bundle identifier不同,但是格式要统一 例如com.yjy.1、com.yjy.2、com.yjy.3,这里要注意免费的App ID账号7天只能创建10个ID

3、App installation failed

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 '.'.

iOS 修改BundleID后报错-编程知识网

   这个问题需要删除之前的.appex文件,选中TARGETS——General——Embedded Binaries,删除.appex后缀的文件,再次运行