Launch Xcode, then go to Window and select Devices and Simulators.
To obtain a device log, connect the applicable device to your computer. Select the Open Console button on the Devices and Simulators screen.
After the console app launches, verify that the appropriate iOS device is selected in the device column. Once you’ve selected the desired log(s), click the Share button to save as a text file or another format.