How I investigated why my iPhone was running hot
By Flavio
Tagged: Mac
I used USB diagnostics, crash reports, and Xcode Instruments to investigate a hot iPhone, but the evidence did not reveal one clear cause.
My iPhone started running hot, even after I closed every app. Closing them didn’t help, which wasn’t too surprising since iOS system services keep running in the background anyway. I plugged the iPhone into my Mac over USB to see what was going on.
A quick warning
The tools in this post can do a lot more than read diagnostics. Some commands can restart the phone, change settings, or interact with running processes, so I stuck to read-only commands.
Don’t copy commands you don’t understand, and back up your iPhone before trying any of this.
Check that the Mac can see the iPhone
First, connect the iPhone with USB, unlock it, and tap Trust This Computer if asked. You can check the USB connection with:
system_profiler SPUSBDataType
Look for an iPhone entry in the output. That confirms macOS sees the phone over USB; the next step checks whether the diagnostic channel is ready.
Install pymobiledevice3
I used pymobiledevice3, an open source tool for talking to iOS devices. Install it inside a virtual environment to keep it isolated from the rest of your system:
python3 -m venv iphone-tools
iphone-tools/bin/pip install pymobiledevice3
Now list the connected devices:
iphone-tools/bin/pymobiledevice3 usbmux list
This prints the iPhone model and iOS version. Be careful with the output since it can include device identifiers, so don’t paste the full result anywhere public.
Read the battery diagnostics
The quickest way to get a battery snapshot is:
iphone-tools/bin/pymobiledevice3 diagnostics battery single
The output is long, so I focused on these fields:
- battery temperature
- charging current and voltage
- current capacity
- cycle count
- design capacity
- full charge capacity
- thermal limiting time
- charger errors
My battery was sitting around 46.6°C while connected, charging at roughly 11W (which adds some heat of its own). It had 426 cycles, about 94% of its original capacity, and no battery safety or charging faults.
So the battery itself looked healthy, which pointed to something else keeping the phone busy.
Look at historical resource reports
iOS writes diagnostic reports whenever a process uses too much CPU, memory, or disk. You can list them with:
iphone-tools/bin/pymobiledevice3 crash ls \
--remote-file / \
--depth 3
Despite the crash subcommand name, this also lists resource-limit reports. I found several reports with names like this:
photoanalysisd.cpu_resource-2026-07-11-091228.ips
photoanalysisd is an Apple system service that scans your Photos library for people, objects, scenes, and relationships. Closing the Photos app doesn’t stop it.
I pulled just the matching reports over to my Mac (don’t pass --erase, as that deletes reports from the phone):
iphone-tools/bin/pymobiledevice3 crash pull reports \
--match '^photoanalysisd.*cpu_resource.*\.ips$'
The newest report had the line I was looking for:
CPU: 90 seconds cpu time over 134 seconds (67% cpu average)
That gave me a strong lead: Photos analysis had repeatedly exceeded the iOS CPU limit over the previous month.
Test Low Power Mode
iOS doesn’t give you a toggle for photoanalysisd, so I turned on Low Power Mode to see if it would defer the background work. I waited a bit and recorded the phone again, and this time photoanalysisd averaged around 0.01% CPU. At least during this test, it went practically idle.
Enable Developer Mode
Historical reports are helpful, but I also wanted live process data, which requires Developer Mode on the iPhone. The toggle might not show up right away, so pair the iPhone with Xcode first:
- Open Xcode.
- Choose Xcode → Open Developer Tool → Device Hub.
- Select the connected iPhone.
- Follow the pairing instructions.
Then open Settings → Privacy & Security → Developer Mode on the iPhone. Enabling it restarts the phone, and once it’s back up you’ll need to unlock it and confirm Developer Mode again.
Since Developer Mode exposes extra debugging services, turn it back off when you’re done if you don’t normally develop iOS apps.
Record all processes with Instruments
Xcode includes Instruments, which can record CPU and memory activity directly from your iPhone. Open it from Xcode → Open Developer Tool → Instruments, pick the Activity Monitor template, and select the iPhone as the target.
I first recorded for two minutes in Immediate mode, where Instruments warned that the data volume was too high and dropped some data. I saved that trace anyway, then ran the test again in Deferred mode, which gave me a cleaner recording.
Export an Instruments trace
You can inspect a saved .trace bundle inside Instruments, or export its tables from the terminal with xctrace. Start by listing the available tables:
xcrun xctrace export \
--input 'run 2.trace' \
--toc \
--output trace-toc.xml
The Activity Monitor trace had a table named activity-monitor-process-live. I exported the second run with:
xcrun xctrace export \
--input 'run 2.trace' \
--xpath '/trace-toc/run[@number="2"]/data/table[@schema="activity-monitor-process-live"]' \
--output processes.xml
That produces XML with samples for every process. Keep in mind that Instruments adds its own overhead: processes like DTServiceHub, ptpd, and sysmond get busier while you’re recording, so don’t mistake that for normal idle usage.
What the live trace showed
The deferred recording confirmed that Photos analysis was idle:
photoanalysisd: 0.01% average CPUmediaanalysisd: 0.005%cloudphotod: 0.009%assetsd: 0.32%
Other processes, though, were plenty busy:
fseventsd: 72.7% average CPUfileproviderd: 42.5%- Twitter: 39.5%
linkd: 25.2%- Siri embedded speech: 18.8%
searchd: 13.9%routined: 8.6%cloudd: 6.2%
fseventsd tracks filesystem changes, and fileproviderd handles iCloud Drive along with other providers connected to the Files app, so file and cloud sync were clearly active during the recording.
Twitter was also surprisingly busy, peaking above 300% CPU (more than three CPU cores at once).
Did I find the cause?
No. I spotted several busy processes and historical reports showing that Photos analysis had exceeded its CPU limit in the past, which gave me good clues, but not a smoking gun.
By the time I captured the live trace, I’d already enabled Low Power Mode, plugged the phone into USB so it was charging, turned on Developer Mode, and attached Instruments. All of that changed the test conditions, so the trace only reflects what the phone was doing during those few minutes rather than what originally made it heat up earlier.
What I learned
Closing apps isn’t a reliable way to diagnose a hot iPhone, because system services keep working long after every visible app is gone.
In my case, the battery looked healthy and the logs pointed to two separate bursts of activity:
- Photos analysis had exceeded its CPU limit earlier.
- Low Power Mode deferred that work, while file and cloud sync stayed busy.
That narrowed things down, even without a definitive answer. If your iPhone starts running hot, start with the safe checks first:
- restart the iPhone
- enable Low Power Mode temporarily
- check Settings → Battery
- leave the phone locked on Wi-Fi and power overnight
- remove the case while the phone cools
If the heat keeps coming back, record a short deferred Activity Monitor trace in Instruments. Even if it doesn’t hand you the exact culprit, you’ll have real numbers from the device to rule things out.
Want me to talk about your product? You can sponsor this site.
Related posts about mac: