Xcode无法在所选目标上运行 [英] Xcode Cannot Run on the Selected Destination

查看:135
本文介绍了Xcode无法在所选目标上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天早上正在运行我的应用程序,现在突然间,当我尝试在iPhone 5.1模拟器上运行时,我收到以下错误。

I was running my app this morning and now all of a sudden I am getting the following error when I try to run on the iPhone 5.1 simulator.

无法在所选目的地上运行

Cannot run on the selected destination

目的地不支持所选软件的构建架构。切换到支持该体系结构的目标,以便运行所选的软件。

The destination does not support the architecture for which the selected software is built. Switch to a destination that supports that architecture in order to run the selected software.

我删除了方案,但仍然没有解决方案。

I deleted the schemes but still no solution.

我正在使用Mountain Lion。我正在使用xCode 4.4(最近升级到Mountain Lion和xCode 4.4)

I am using Mountain Lion. I am using xCode 4.4 (Recently upgraded to Mountain Lion and xCode 4.4)

更新1:以下是我的构建设置的视图:

UPDATE 1: Here is the view of my build settings:

UPDATE:以下是阻止其运行的实际错误。

UPDATE: Here is the actual error which prevents from it running.

推荐答案

您可以按照以下步骤操作:

You might follow the steps:


  • 退出Xcode和iPhone模拟器

  • 拔下你的设备

  • 转到 / Users / your_usr_name / Library / Developer / Xcode / DerivedData /

  • 删除此文件夹下的所有数据

  • 再次启动Xcode并运行项目

  • Quit Xcode and iPhone simulator
  • Unplug your devices
  • Goto /Users/your_usr_name/Library/Developer/Xcode/DerivedData/
  • Delete all data under this folder
  • Start Xcode again and run your project

希望这可以解决您的问题。

Hope this will solve your problem.

这篇关于Xcode无法在所选目标上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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