Suggested approach: Walk through your knowledge of debugging from the basics upwards. Do you use breakpoints? Do you use assert()
or precondition()
? Do you write to a log? Do you download crash logs from iTunes Connect?
All these things help provide data points we can use to find and fix problems in our code, because once you know where the problem is it's usually(!) fairly straightforward to fix.
Estimated difficulty: Intermediate
Link copied to your pasteboard.