无法在Simulator Xcode 6中运行应用程序 [英] Unable to run app in Simulator Xcode 6

查看:156
本文介绍了无法在Simulator Xcode 6中运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我在iOS模拟器中测试我的应用程序,一切正常。然后我决定在我的iPhone上运行应用程序,我得到错误无法安装应用程序,发生未知错误这已发生之前所以我清理了我的构建文件夹(因为这有但是,之前修复了此问题),发生了同样的错误。然后我再次在iOS模拟器中运行应用程序,现在我收到错误无法在模拟器中运行应用程序,运行时遇到错误(Domain = LaunchServicesError,Code = 0)。我觉得这很奇怪,因为除了试图在我的iPhone上运行应用程序之外我没有改变任何东西。我已尝试在这篇文章仍然没有运气。

Yesterday i was testing my app in the iOS simulator and everything was working fine. I then decided to run the app on my iPhone and i got the error unable to install application, Unknown error occurred this has happened before so I cleaned my build folder (as this has fixed this issue before) however, the same error occurred. I then ran the app in the iOS simulator again and now i get the error Unable to run app in Simulator, An error was encountered while running (Domain = LaunchServicesError, Code = 0). I find this very weird as i didn't change anything besides trying to run the app on my iPhone. I have tried every solution given on this post and still no luck.

我很抱歉,如果我的问题没有太多细节,但正如我所说,我没有改变任何东西,它在插入前一分钟建立并运行良好我的iPhone并试图在那里运行它。

I'm sorry if my question doesn't contain much detail but as I said I didn't change anything and it was building and running fine a minute before plugging in my iPhone and trying to run it on there.

任何帮助都会非常感激。

Any help would be much appreciated.

编辑

我尝试运行其他项目(有和没有扩展),他们正在使用模拟器和iPhone,因此问题必须在我的项目中。 (我的项目确实有今天的延期)

I tried running other projects (with and without extensions) and they are working on both simulator and iPhone, therefore the problem must be within my project. (my project does have a today extension)

推荐答案

在这种情况下,我通常会:

In that kind of cases I usually :


  • 产品>清洁

  • 关闭xCode

  • 删除派生数据(在〜/ Library中) / Developer / Xcode / DerivedData子文件夹)

  • 删除iPhone上的应用程序

  • 重新启动iPhone

  • 重新启动并重建

  • Product > Clean
  • Close xCode
  • Delete the Derived Data (in ~/Library/Developer/Xcode/DerivedData subfolders)
  • Delete the app on the iPhone
  • Reboot the iPhone
  • Restart and rebuild

这篇关于无法在Simulator Xcode 6中运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆