If you use a simulator (apparently your task does not seem to need a real device), you're in luck.
You should go to a folder like this:
/ Users / [username] / Library / Developer / CoreSimulator / Devices / [RANDOM_HASH_YOU_SHOULD_DISCOVER] / data / Containers / Data / Application / [RANDOM_HASH_2_YOU_SHOULD_ALSO_DISCOVER]
Once there, using finder, you will get the simulator โdocumentsโ folder and the application from which you are trying to get your logs.
You could say: I do not know which 2 RANDOM_HASHES I should go to. Yes you are right. If you have many simulators installed or used, it can be difficult to find which one you are trying to debug. The same thing with your APP, your application will live in a different RANDOM_HASH folder, and you must view them one by one, and then open the document folder.
Someone needed to solve this โmessโ and create the Xcode Alcatraz Extension, which will lead you to an accurate real-time simulator and APP that you are debugging at any time, and then you need to guess which 2 random_hash paths you need to go to to.
If the Xcode + Alcartaz plugin extension manager is a little inappropriate for you, you may need Google. This is not a complicated process.
PS: This Alcatraz magic extension is called "XcodeWay" (if you are brave enough to install Alcatraz on your copy of Xcode).
EDIT: Useful link for getting Alcatraz: http://alcatraz.io/ Follow its simple instructions and you're done.
EDIT2: If Xcode cannot be used, then the last question in this other thread may be useful: Browse the files created on the device by the IOS application I'm developing on the workstation? (However, an external application on your computer is required)
Isaac source share