简体   繁体   English

为什么我的应用程序可以在模拟器中运行,但是在iPhone上运行时却卡在启动屏幕上?

[英]Why does my app work in the simulator but get stuck on the splash screen when I run it on my iPhone?

My app runs fine on the simulator. 我的应用在模拟器上运行良好。 However, when I run it on my iPhone, it gets as far as displaying the splash screen and then just stays there. 但是,当我在iPhone上运行它时,它会显示初始屏幕,然后停留在那里。 It's an iPhone 3GS and the software version is 5.0.1. 它是iPhone 3GS,软件版本是5.0.1。 That's what happens when Debugger = None. 这就是Debugger = None时发生的情况。 When Debugger = GDB, I get an error message, 'Thread 1: Program received signal: "SIGABRT"', which I have learned can mean almost anything. 当Debugger = GDB时,我收到一条错误消息,“线程1:程序收到信号:“ SIGABRT””,据我所知几乎没有任何意义。 I'm running Xcode 4.2.1. 我正在运行Xcode 4.2.1。

I'm coming off a long hard night of battling with this error message, which appeared seemingly out of nowhere in a stable mature app. 我正经历着漫长而艰苦的夜晚,与这个错误消息作斗争,该错误消息似乎在稳定的成熟应用程序中无处不在。 I tried to roll back with time machine, I deleted the Derived data for my project in Organizer a few times and did some of the other stuff recommended in this thread. 我尝试使用时光机进行回滚,我几次在Organizer中删除了项目的“派生数据”,并做了此线程中推荐的其他一些操作。

XCode 4 hangs at "Attaching to (app name)" XCode 4挂在“附加到(应用程序名称)”上

It got ugly. 它变得丑陋。 For a while, I couldn't even reboot my machine. 有一阵子,我什至无法重启机器。 Eventually, I was able to relaunch finder and suddenly the Simulator was working again. 最终,我能够重新启动取景器,突然模拟器又开始工作了。 Two more pieces of information, I used to have to click allow in two dialog boxes when running on my phone but now it's only one (the one about code signing, I forget what the other one was about). 还有两条信息,过去在手机上运行时,我不得不在两个对话框中单击“允许”,但现在只有一个(关于代码签名的信息,我忘记了另一个。) Second, I find all the build architecture target stuff confusing but I set all my Base SDKs to be latest iOS. 其次,我发现所有构建体系结构目标东西都令人困惑,但是我将所有基本SDK都设置为最新的iOS。 Lastly, I tried Product --> Clean and then Build but that didn't fix it. 最后,我尝试了产品->清理,然后构建,但这并没有解决。 As you may have gathered, I'm getting my butt kicked. 正如您可能聚集的那样,我被踢了。 Any help would be much appreciated. 任何帮助将非常感激。

Dessie 黛西

Many times I have experienced Xcode going "crazy" with a physical device connected. 很多时候,我经历过Xcode在连接物理设备时变得“疯狂”。 At times I saw the behavior you describes; 有时我看到您描述的行为; other the app simply refused to start; 其他应用只是拒绝启动;

In all of those cases, I could fixed it in either of two ways: 在所有这些情况下,我都可以通过以下两种方式之一对其进行修复:

  1. disconnect the iphone and connect it again; 断开iPhone并重新连接;

  2. reboot the device. 重新启动设备。

This is a very common problem that is easily fixable. 这是一个很常见的问题,很容易解决。

1) remove the app from the device 1)从设备中删除应用

2) reboot the device 2)重启设备

3) close Xcode and you must restart, logging out will not work 3)关闭Xcode,必须重新启动,注销将不起作用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从Xcode在Iphone模拟器上运行时,JQM / Phonegap本机应用程序停留在初始屏幕上 - JQM/Phonegap native app stuck at splash screen when run on Iphone simulator from xcode 当我尝试运行项目并且未使用模拟器时,为什么iPhone模拟器显示“正在使用模拟器”? - Why does the iPhone simulator show “Simulator in use” when I try to run my project and the simulator is not in use? 当我在ios模拟器中运行应用时,我的应用被卡在显示版权内容的白屏上 - My app gets stuck on a white screen that says copyright stuff when i run it in a ios simulator 尝试通过 VS Studio 和 Xcode 在 iphone 模拟器上运行我的应用程序,当我运行模拟器时出现此错误: - Trying to run my app on an iphone simulator through VS Studio and Xcode and when I run the simulator I get this error: 我的iPhone应用程序不会在新的iPhone 5模拟器中使用信箱运行。 我怎么把它拿到信箱? - My iPhone App won't run with letterboxes in the new iPhone 5 simulator. How do I get it to letterbox? 为什么我的iOS应用对于我的Apple评论者可能会停留在启动屏幕上,而对我却不这样? - Why might my iOS app be stuck on splash screen for Apple reviewers but not for me? 为什么我运行应用程序时图像会拉伸? - Why does my Image stretch when I run my app? 关于iOS开发。 当我在iPhone6上运行项目时,启动屏幕没有显示,但是在模拟器iPhone6上运行时,显示了启动屏幕 - About iOS development. The launch screen didn't show when I run my project on my iPhone6,however,its's show when run on simulator iPhone6 当我在 iOS 上运行 Ionic 时卡在启动屏幕上 - Stuck on the splash screen when I run the Ionic on iOS React 本机应用程序卡在设备的启动屏幕上,但可在模拟器中运行 - React native app stuck on splash screen on device but works in simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM