문제

Is there any function in Xcode instruments that would show me status of the device temperature while debugging? I have an app that makes the phone go crazy hot and I don't know why. I am not asking why is my app causing my device to overheat - I want to know if there is a way HOW to find out why.

도움이 되었습니까?

해결책 2

There's no way to get the temperature of the device in Instruments. For that to be possible, the device itself would have to have a temperature sensor, and as far as I know, it does not.

To me, if the device is overheating, that's a problem for the hardware engineers. I doubt anything you change in your app could fix it.

다른 팁

If your device is getting hot solely because of your app, it's because it's consuming power. There's nothing else that can heat up your device. The biggest power users on your device are your screen and the radios. So, are you overusing location services, the camera, bluetooth, endlessly pinging wifi? Check out the WWDC lectures on power use, you might find your solution there.

It's probably something you're doing with the app itself. High CPU/GPU/GPS or cell usage would be the most likely culprit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top