Xcode 4.6.2 错误:“无法在所选目标上运行" [英] Xcode 4.6.2 error: "cannot run on the selected destination"

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

问题描述

我已经遇到这个问题几个星期了.突然间这发生在我的项目上,我无法修复它.它是一个基本的标签栏应用程序,我什至几乎没有开始对其进行大量编码.运行 xcode 4.6.2(也在 4.6 和 4.6.1 上试过).

I've been having this problem for a couple weeks now. All of a sudden this happened to my project and I havent been able to fix it. Its a basic tab-bar app and i've barely even started heavy coding on it. Running xcode 4.6.2 (tried on 4.6 and 4.6.1 also).

实际错误说:无法在选定的目标上运行所选目标不支持为其构建所选软件的体系结构.切换到支持该架构的目标以运行所选软件."

The actual error says: "Cannot run on the selected destination The selected 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."

提前致谢.

推荐答案

这是我的新修复:我(出于某种原因)更改了下面突出显示的行:

Well here's my new fix: I had (for some reason) changed the highlighted line below:

我已将 ${EXECUTABLE_NAME} 更改为其他内容.改回来并没有立即解决问题:我必须先点击 + 添加新行,然后删除新行.

I had changed the ${EXECUTABLE_NAME} to something else. Changing it back did not fix the issue immediately: I had to first click the + to add a new row then delete the new row.

我的应用现在运行良好

旧修正:

好的,是的,这是真的,还有其他类似的问题.他们帮助我找到了一个不同的(和陌生的)解决方案.

OK, so yes, it's true, there are other questions like this one. They helped me figure out a different (and stranger) solution.

  1. 我右键单击我的 .xcodeproj 文件并选择显示包内容"
  2. 然后我打开了project.pbxproj"
  3. 我将其中的所有文本复制到另一个文件中,删除了其中的所有文本并保存了
  4. 这个崩溃"了我不小心在 XCode 中打开的 XCode 项目.
  5. 我关闭了我的项目,然后将project.pbxproj"的原始内容粘贴回project.pbxproj"
  6. 我保存了project.pbxproj"并关闭了它
  7. 再次打开我的 XCode 项目后,我可以在我的设备上运行它!

对我来说,这没有意义,因为我没有修改文件......但它确实如此,太棒了!

To me, it doesn't make sense why this worked because I didn't modify an files... But it did, so hurrah!

附注事先备份您的项目,以防万一.

PS Back up your project beforehand, just in case.

编辑:好吧,我的又停止工作了,我无法使用上述方法修复它...

EDIT: Well mine has stopped working again and I can't use the above method to fix it...

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

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