IOS simulator problem app only runs when started for the second time..

此生再无相见时 提交于 2019-12-02 03:43:13

问题


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 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..

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

Two questions,

  1. has anyone had a similar experience?
  2. am I in trouble when submitting my app to the appStore

Thnx, Sebastian


回答1:


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.



来源:https://stackoverflow.com/questions/7574347/ios-simulator-problem-app-only-runs-when-started-for-the-second-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!