Application error on iPhone, but not on simulator

I am using Xcode 7.0b5 and have created a Swift application. It works great on a simulator, but crashes on iPhone 4 when it starts offline (without cable). How to determine where it falls? I read about possible memory problems. I read in a large text file, so it needs about 200 MB of RAM. How can I check it?

+5
source share
2 answers

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 an iPhone connected, you can go to Window-> Devices, select your phone and click on "View device logs." You will see a list with all the latest application crashes and crash information.

respectfully

+3
source

I got a solution. This is the time of work. I reduced the file size to 10% of the original, and everything works fine. Therefore, I can test it and "improve" it to the speed limit of iPhone 4S. :-)

0
source

All Articles