最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]Xcode用iOS模拟器调试app出错:The operation couldn’t be completed LaunchServicesError error 0

iOS crifan 2831浏览 0评论

Xcode中,选择了,之前就正常使用的iOS模拟器中的iPhone 5,去调试app,结果启动就出错:

The operation couldn’t be completed. (LaunchServicesError error 0.)

Clean项目后,重新编译,再去调试,错误依旧。

The operation couldn’t be completed. (LaunchServicesError error 0.)

XCODE 出现 The operation couldn’t be completed.(LaunchServicesError error 0.)错误修复 – KAME – 博客园

The operation couldn’t be completed. (LaunchServicesError error 0.) – 简书

ios – Unable to run app in Simulator: An error was encountered while running (Domain = LaunchServicesError, Code = 0) – Stack Overflow

去模拟器中删除之前已安装的该app:

去看了下,bundle ID也是正常的:

即可正常运行:

[总结]

此处Xcode用iOS模拟器调试app发生:

The operation couldn’t be completed. (LaunchServicesError error 0.)

时,原因是:

之前已经安装了对应的app,但是后来在Xcode中,我修改了Bundle ID

导致现在新的app无法在iOS模拟器中安装和启动

解决办法是:

删除掉iOS模拟器中旧的app

[后记]

结果刚刚又出现该问题

-》好像是:clean后,重新编译,再去Run,就出错

退出iOS模拟器,重启iOS模拟器试试

感觉像是:只要是iOS模拟器中,已安装了该app,就无法正常启动调试了。

转载请注明:在路上 » [已解决]Xcode用iOS模拟器调试app出错:The operation couldn’t be completed LaunchServicesError error 0

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.174 seconds, using 22.05MB memory