The application bundle does not contain a valid identifier

问题

项目编译运行成功,在 install 的时候失败,弹出"The application bundle does not contain a valid identifier"错误

说明

真机安装会报错,模拟器正常

解决

Derived Data导致的问题
Xcode => Preferences => Locations => 进入 Derived Data => 关闭 Xcode => 删除Derived Data文件夹 => 重启 Xcode => Clean => 重新运行

你可能感兴趣的:(The application bundle does not contain a valid identifier)