Xcode成功构建了我的目标,但不运行产品 [英] Xcode successfully builds my target, but does not run the product

查看:371
本文介绍了Xcode成功构建了我的目标,但不运行产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X Lion上安装了Xcode 4.2.1。
当我创建一个新的(Mac OS X Cocoa)项目,我点击运行,Xcode说build成功,但不运行项目。没有错误,但没有应用程序。
当我做同样的事情在另一台Mac(但与OS X Snow Leopard和Xcode 4.0.1安装),创建的应用程序开始弹跳在码头,并显示一个空窗口,我会期望。
当我看着控制台,似乎没有什么奇怪的事情。
我试过重新安装Xcode,删除与Xcode相关的一切,但仍然没有运气。
任何人都有一个想法可能是什么问题?

I've installed Xcode 4.2.1 on Mac OS X Lion. When I create a new (Mac OS X Cocoa) project and I click "Run", Xcode says build succeeded, but doesn't run the project. No errors, but no application either. When I do exactly the same thing on another Mac (but with OS X Snow Leopard and Xcode 4.0.1 installed), the created app starts bouncing in the dock and shows an empty window, like I would expect. When I look in the Console, there seems to be nothing strange going on. I tried reinstalling Xcode, deleting everything related to Xcode, but still no luck. Anyone got an idea what could be the problem?

(我试过运行一个现有的项目,以前工作,但也没有显示任何东西)

(I tried running an existing project which used to work, but that didn't show anything either)

推荐答案

我有一个类似的问题Xcode 4.5.2。

I had a similar problem with Xcode 4.5.2.

要解决它,我不得不去菜单产品>编辑方案...>选择运行(在边栏)>信息(选项卡)。在这里是一个下拉框标记为可执行文件,选择它,然后选择您希望在单击运行按钮时启动的应用程序。

To fix it I had to go to the menu Product > Edit Scheme... > Select "Run " (in the sidebar) > Info (tab). In here is a drop down box labeled Executable, select it and choose your app that you wish to launch when the Run button is clicked.

这篇关于Xcode成功构建了我的目标,但不运行产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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