Simulator出现错误This app could not
2018-06-28 本文已影响16人
崠崠
新项目跑模拟器出现This app could not be installed at this time错误,无法安装。
谷歌出的解决方案有以下几种
- 在模拟器中卸载App重新Run(或者是修改Bundle ID )
- 重启Xcode和Simulator
上面两种方法(其实使用于大部分的关于Simulator出现的错误)试试之后,如果好了,那万事大吉。
不过,比较准确的定位错误原因找到解决方案就是查看LOG日志。
- 查看LOG日志
//日志位置
~/Library/Logs/CoreSimulator/CoreSimulator.log

打开log文件,在run之前先清除日志内容,随后可以在日志上获取出出错的原因,根据错误,就可以找出解决办法。

(PS:我误将静态库加入到Embedded Binaries中,导致库中的.plist无法找到,从Embedded Binaries去除重新加入Link Frameworks and Libraries)