Xcode 4.5不在模拟器或设备上运行/加载应用程序 [英] Xcode 4.5 doesn't run / load app on simulators or device

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

问题描述

我在OS X Lion 10.7.5在2007年中期Mac Mini上运行Xcode 4.5。我遇到这个问题之前,模拟器以及实际的设备不运行应用程序时,我建立。我使用Phonegap 2.1,HTML,JS,Jquery Mobile编写了几个不同的应用程序。我按照 OSX Daily SO如何完全删除Xcode 4 。这工作了一段时间,但然后我的300gb SSD驱动器死亡&我不得不重新安装OEM 120 GB硬盘驱动器&重新安装Xcode& Phonegap(自从驱动器被卸载后,两个版本都有版本)。现在我无法得到Xcode启动模拟器或下载到我的iPhone 4了。我完全卸载Xcode再次昨天&重新安装。我第一次尝试构建,花了很长时间下载5.1模拟器(*见下面的编辑),但最终完成,但仍然没有运行它们。尝试下载到我的手机,没有什么。

I'm running Xcode 4.5 on OS X Lion 10.7.5 on a Mid 2007 Mac Mini. I've run into this problem before where the simulators as well as actual devices don't run the app when I build. I'm writing a couple of different applications using Phonegap 2.1, HTML, JS, Jquery Mobile. I've reinstalled Xcode 2-3x after following the instructions from OSX Daily and SO How to fully remove Xcode 4. This worked for a while, but then my 300gb SSD drive died & I had to reinstall the OEM 120 GB hard drive & reinstall Xcode & Phonegap (both had revved versions since the drive had been uninstalled). Now I'm unable to get Xcode to start the simulators or download to my iPhone 4 again. I completely uninstalled Xcode again yesterday & reinstalled. The first time I tried to build, it took a long time downloading the 5.1 simulators (* see edit below), but finally "finished", but still didn't run them. Tried downloading to my phone, again nothing.

由于这是第三次或第四次发生这种情况,我想知道我做错了。显然,我错过了一些东西,因为我没有看到这个问题在各种支持论坛,像这里,谷歌或苹果被尖叫,只有位&件在这里和那里。

Since this is the third or fourth time that this has happened, I'm wondering what I'm doing wrong. Obviously I'm missing something because I don't see this problem being screamed about on the various support forums like here, Google, or Apple, only bits & pieces here and there.

作为一个测试,我创建了一个裸体的PhoneGap应用程序,没有任何内容,但任何PG创建,它不运行模拟器或下载到我的手机。这个相同的方法用于测试系统,但不再工作。它构建得很好,并使方形运行按钮变暗几秒钟,然后按钮再次照亮,就像你停止了应用程序,就是这样。没有错误消息,没有构建错误,没有任何内容。

As a test, I created a bare bones PhoneGap app that has nothing in it but whatever PG creates, and it doesn't run the simulators or download to my phone. This same method used to work just to test the system, but no longer. It builds fine, and darkens the square "running" button for a few seconds, and then the button lightens again like you've stopped the app, and that's it. No error messages, no build faults, nothing.

英特尔正在更换我的SSD驱动器,所以我必须经过这一遍又一遍,当它到达,除非我可以得到一个工作副本在硬盘驱动器上运行,然后克隆它与碳复制克隆,所以我可以复制到新的驱动器。

Intel is replacing my SSD drive, so I'm going to have to go through this all over again when it gets here, unless I can get a working copy running on the hard drive, then clone it with Carbon Copy Cloner so I can just copy that onto the new drive.

任何帮助非常感谢,我真的不想一直处理这个。

Any help would be greatly appreciated, I'd really like to not have to deal with this on an ongoing basis.

*编辑:我最初删除了这个问题,因为我认为我会做了一些愚蠢的,我意识到我下载了文档为模拟器,而不是实际模拟器。我已经下载了5.1模拟器,但我仍然遇到相同的问题。

* I originally deleted this question because I thought I'd done something stupid, I realized I'd downloaded the documentation for the simulators, but not the actual simulators. I've since downloaded the 5.1 simulators and I'm still experiencing the same problems.

推荐答案

这是实际的答案,但我似乎已经找到一个程序的序列工作。

So, I'm not sure this is the actual answer, but I seem to have found a procedural sequence that works.

第一:我完全删除了Xcode(再次),从头重新安装,并且更新除4.3之外的所有模拟器以及命令行工具(Xcode>首选项>下载>组件>所有模拟器,除了4.3和命令行工具)。

First: I completely deleted Xcode (again), reinstalled it from scratch (again), and updated all the simulators except 4.3 as well as the command line tools (Xcode > Preferences > Download > Components > All simulators except 4.3 & the command line tools) again.

第二:我也重新安装了PhoneGap 2.1,但我不确定这是否必要,它更像是一个焦土地球运动。 Xcode中的问题似乎源于Scheme,我一直得到的方案名为CordovaLib而不是我的项目名称。如果您点击Scheme / Simulator按钮上的CordovaLib(左上角是列出可用方案和模拟器的地方,就在build& stop按钮旁边),并将方案更改为项目名称

Second: I also reinstalled PhoneGap 2.1, but I'm not sure this was necessary, it was more of a scorched earth campaign. The problem in Xcode seemed to stem from the Scheme, I kept getting Schemes named "CordovaLib" instead of my project names. If you click on "CordovaLib" on the Scheme/Simulator buttons (the top left hand side is where the available schemes & simulartors are listed, right next to the build & stop buttons), and change the scheme to the project name that helps.

第三:您需要确保应用的位置设置为唯一。在Xcode>首选项>位置>位置(非源树)>派生数据>高级>构建位置==唯一>完成。这样做。

Third: You need to make sure that the location for your app is set to "unique". Do this at Xcode > Preferences > Locations > Locations (not Source Trees) > Derived Data > Advanced > Build Location == Unique > Done.

它似乎有助于打开在Xcode中的项目,而不是从Finder启动它们,但我不相信这是真的,只是更好的工作,但我可以想象它。

It seems to help to open the projects in Xcode instead of launching them from Finder, but I'm not convinced that's true, it just seemed to work better, but I could be imagining it.

如果我这样做的项目,我曾经有问题,我现在可以下载他们到模拟器&我的电话。

If I do this on projects I used to have problems on, I can now download them to the simulators & my phone.

这没有得到任何回应,但也许别人会发现它有用。

This didn't get any responses, but maybe someone else will find it useful.

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

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