How do I identify a bug that I don't know the cause?

Asked 2 years ago, Updated 2 years ago, 30 views

We make all the apps and run them on the actual machine.
I have confirmed that all functions work as expected without any problems with the actual machine.
However, if you use the app on the actual machine for a certain period of time, the app will not start.
(Launchscreen appears for a second and falls off immediately.)

Therefore, if you connect the actual iPhone to the xcode and rebuild it, it will start again without any problems and work.
I thought the data in CoreData might be bad, so I checked the contents, but there seems to be no problem with the data.In the first View, after configuring the table and admob settings,
from CoreData to the table. It's simple enough to get data.

If an error occurs while connected to xcode, I can read the error code and respond. Could you please advise me how to debug bugs that I don't know when they will occur like this?

swift ios

2022-09-29 22:38

1 Answers

Connect the terminal to the Mac with a USB cable, open Window > Devices from the Xcode menu bar, select the terminal you connected, and click View Device Logs to open the crash log list.
Find the crash log of the application you want by process name and date and read the log.

If you put the app in the Mac you are developing, you will see the function name and line number of the code at the time of the crash.


2022-09-29 22:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.