App crashes on iPhone but not on simulator


I'm using XCode 7.0b5 and created an Swift app. It runs fine on simulator but crashes on iPhone 4s when running independently (without cable). How can identify where it crashes? I read about possible memory issues. I'm reading in a large textfile, so it needs nearly 200 MB of ram. How can I check it?


I think this is a memory problem with the iPhone 4S (200 mb for 4S is a lot). You should read the crash logs in Xcode.

In Xcode with the iPhone connected you can go to Window->Devices, select your phone and press 'View Device Logs'. You will see a list with all the last crashes of the apps and with the information of the crash.



I got the solution. It is the run time. I reduced the file sizes to 10% of the original and everything runs fine. So I can test it and "improve" it to the speed limit of the iPhone 4S. :-)


  • Toggling(or Flashing) a particular cell in a Table for some time frame
  • Input Date in Struts2
  • How to convert Strings to into a phone number
  • How to change PhoneGap's screen size?
  • Python Pandas : How to skip columns when reading a file?
  • Best practices for coding , compiling, debugging and maintaining shader programs in opengl? [closed]
  • BigQuery: straight table format of matrix multiplication into more traditional Matrix multiplication
  • Calendar start weeks at Monday
  • javax.naming.NameNotFoundException: Name [jdbc/mydb] is not bound in this Context
  • Azure function C#: Create or replace document in cosmos db on HTTP request
  • Byte Array to *Signed* Int
  • Errors with Codename One “Send iOS Build” and “Send Android Build”
  • How to use Sanitize on HTML Entity
  • Images tile on Google map in android
  • Eloquent Javascript: Can't understand how the number value is determined in the sum function
  • Can the use of C++11's 'auto' deteriorate performance or even break the code?
  • Fetch data from nested nodes in Firebase
  • Limit # of records returned based on a form control
  • What is the reason for using single-character generic type names in java?
  • Adding custom message on Thank You page by shipping method
  • iOS: Address Book
  • JavaFX Embed Custom Font Not Working
  • How to delete first 7 characters of folder name by using batch script?
  • How to get WinForms custom control's default value to be respected when first dropped on a form
  • Expression.Call GroupBy then Select and Count()?
  • Corda: How to implement hierarchical relationships between state data persisted to H2
  • Django REST framework - HyperlinkedRelatedField with additional parameter
  • GTK3 + OpenGL for windows: multiple GtkGLArea (ie. OpenGL contexts)
  • Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP)
  • How to load dynamic images in custom ListView
  • What is the difference between dynamically creating a script tag and statically embed a script tag?
  • r - input value by user to dataframe via shiny
  • How to include associated objects using gon in Rails/jQuery
  • How can I ssh into a server that requires 2 password authentication using python's paramiko mod
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • Cloud Code: Creating a Parse.File from URL
  • Another “Cannot make static reference…” Question
  • Background transfer download task failed when app was closed
  • XEP-0166: Jingle protocol implementation for voice/video chat in iOS
  • How to mutate multiple variables without repeating codes?