美文网首页iOS 问题集锦
Simulator出现错误This app could not

Simulator出现错误This app could not

作者: 崠崠 | 来源:发表于2018-06-28 18:16 被阅读16次

新项目跑模拟器出现This app could not be installed at this time错误,无法安装。
谷歌出的解决方案有以下几种

  1. 在模拟器中卸载App重新Run(或者是修改Bundle ID )
  2. 重启Xcode和Simulator

上面两种方法(其实使用于大部分的关于Simulator出现的错误)试试之后,如果好了,那万事大吉。
不过,比较准确的定位错误原因找到解决方案就是查看LOG日志。

  1. 查看LOG日志
//日志位置
~/Library/Logs/CoreSimulator/CoreSimulator.log
日志位置.png

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

日志.png

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

相关文章

网友评论

    本文标题:Simulator出现错误This app could not

    本文链接:https://www.haomeiwen.com/subject/hpknyftx.html