Xcode 4-启动可执行文件时出错 [英] Xcode 4 - Error Starting Executable

查看:110
本文介绍了Xcode 4-启动可执行文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Xcode 3.2.5开发一个项目,今天我尝试将其迁移到Xcode 4.0.它编译得很好.我可以顺利导航并执行.app(如预期的那样).唯一棘手的是Xcode无法启动应用程序,并在尝试时显示以下错误:

I've been working on a project in Xcode 3.2.5 and today I tried migrating it up to Xcode 4.0. It compiles just fine; I can navigate to and execute the .app without a hitch (as expected). The only thing that is screwy is the fact that Xcode cannot launch the application, and displays the following error when it tries:

启动可执行文件时出错.未指定可执行文件.请使用文件"或"exec文件"命令"(图像不可用)

"Error starting executable. No executable file specified. Use the "file" or "exec-file" command" (image not available)

我已经仔细检查了Project和Xcode的设置,并进行了半天的搜索,但是我所能找到的只是死胡同,人们对打破Apple NDA的态度ash之以鼻. FYI Xcode 4已发布,并且不再受NDA约束.

I've scoured the Project and Xcode settings and have been googling for half the day, but all I can find are dead ends and people bashing other people about breaking Apple NDA. FYI Xcode 4 has been released, and is no longer under NDA.

我应该只是开始一个新项目并复制到我的源代码中吗?听起来对我来说是错的,但是当蛮力起作用时,蛮力起作用.

Should I just start a new project and copy in my source? Sounds wrong to me, but brute force works when brute force works.

预先感谢

推荐答案

猜测一下,它基于v3目标和构建设置为您设置的方案可能不太正确.在方案菜单中,选择编辑当前方案,然后从列表中选择运行"操作,并确保选择了适当的可执行文件.

At a guess, the schemes it set up for you based on your v3 targets and build settings might not be quite right. From the schemes menu, choose to edit the current scheme, then select the Run action from the list and make sure the appropriate exectuable is selected.

这篇关于Xcode 4-启动可执行文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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