iOS模拟器问题应用仅在第二次启动时运行. [英] IOS simulator problem app only runs when started for the second time..

查看:139
本文介绍了iOS模拟器问题应用仅在第二次启动时运行.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序可以在我的物理设备(iphone 4)上正常运行,它也可以在IOS模拟器上正常运行,但是只有在第二次我想从Xcode运行它时才可以.

My app runs fine on my physical device (iphone 4), it also runs fine on the IOS simulator, but only after the second time I ty to run it from Xcode.

所以事情发生的顺序是:

So the sequence in which things are happening is:

  1. IOS模拟器已关闭.
  2. 我在XCode中按"ctrl R"
  3. IOS模拟器启动,应用程序启动,但随后没有更多的启动屏幕(确实 不会崩溃,它只是位于启动屏幕上)
  4. 我按Xcode中的停止"按钮(应用程序停止在Simulator中运行)
  5. 我再次按"ctrl R"
  6. 应用程序在IOS模拟器中启动,并且像超级按钮一样运行..
  1. IOS simulator closed.
  2. I press "ctrl R" in XCode
  3. IOS simulator starts, app starts but gets no further then the splash screen (does not crash it just sits at the splash screen)
  4. I press the stop Button in Xcode (app stops running in Simulator)
  5. I Press "ctrl R" again
  6. App starts in IOS simulator and runs like a charm..

如果我关闭IOS模拟器,请重新打开它,然后从finder中打开它并运行已安装的版本,则它可以正常运行.

If I close the IOS simulator reopen open it from finder and run the installed version, it runs without problems.

两个问题

  1. 有人有过类似的经历吗?
  2. 将我的应用提交到appStore时遇到麻烦

Thnx,塞巴斯蒂安

Thnx, Sebastian

推荐答案

当我删除了大多数日志消息(我有很多日志消息)时,问题就消失了.因此,要么其中一条消息出现问题,要么与消息数量有关,希望这对遇到相同问题的任何人有所帮助.

The problem went away when I removed the majority of my logging messages (I had ton's of them). So either there was an issue with one of the messages or it had to do with the amount of them , hope this helps anyone who experiences the same problems.

这篇关于iOS模拟器问题应用仅在第二次启动时运行.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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