MacOS应用程序无法在Xcode模拟器上运行 [英] MacOS app does not run on the Xcode simulator

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

问题描述

我已经在Mac OS X Lion上安装了 Xcode 4.2.1 .

I've installed Xcode 4.2.1 on Mac OS X Lion.

当我创建一个新的(Mac OS X Cocoa)项目并单击运行"时,Xcode表示构建成功,但是没有运行该项目.没有错误,也没有应用程序.

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.

当我在另一台Mac上执行相同的操作(但安装了OS X Snow Leopard和Xcode 4.0.1)时,创建的应用程序开始在扩展坞中弹跳,并显示一个空窗口,就像我期望的那样.

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.

当我在控制台中查看时,似乎没有什么奇怪的事情. 我尝试重新安装Xcode,删除了与Xcode相关的所有内容,但还是没有运气.

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.

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

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