Skip to main content

Connecting the Unity Profiler to your iOS Device

·261 words·2 mins

While doing some contract work recently I found that the Unity Profiler no longer reports accurate texture memory figures for mobile while you are in editor. Maybe it never did but I swear it did an some point. Rest assured, all the texture compression settings are still fine, you just have to test on device now. I had never done this with the latest release of Unity and remembered the days where I wished I could. So I gave it a bash and it is dope! Here are the steps you follow:

  1. Make sure your mobile device is on the wifi network. The profiler uses a network connection to send data back to Unity.

  2. Make sure you have “Development Build” and “Auto Connect Profiler” check to on in the build settings (handy shortcut for the build menu, Command + Shift + B)

    Build Settings, autoconnect

  3. Build for XCode. Make sure you are using a profile that allows you to be running the XCode debugger, so not an enterprise profile.

  4. When the game launches, grab the IP address that appears in the XCode debug console. It will have a port number so make sure to get that as well.

    XCode output

  5. In Unity, in the profiler, click on the “Active Profiler” button in the bar at the top. Sometimes it picks it up automatically, but if not, dump in the IP address and port number in the box provided when you click “”.

    Select a device to attache to

Thats it! Super simple and effective. Now the data that you see in the profiler is live from your device. Thanks a ton Unity!



Roger Miller
Author
Roger Miller
With 25 years in the technology industry, 6 in XR, 10 in the game industry, and on 4 continents, Roger comes with a breadth of knowledge. He has worked with industry-leading companies such as Ogilvy One, Amazon, and Meta, been a vendor for entertainment companies such as Unity, Amazon, Disney, and HBO, created solutions for BMW and Deloitte, and been nominated for awards such as the IMGA. He has spoken at Unity Unite, is a frequent speaker at Unity User Groups all over the country, and founded the Unity User Group in Bend, OR.