Help Connecting Profiler to iPhone (iOS) 2019.4

I’m looking for some help connecting the Profiler to any iOS device. I used to be able to make this work in 2018, but now in 2019.4 I haven’t been able to connect the profiler following the instructions from Unity - Manual: Profiling your application.

In my BuildOptions I have BuildOptions.AllowDebugging | BuildOptions.ConnectWithProfiler | BuildOptions.AutoRunPlayer

With this, the connected iPhone appears as an option in the Profiler windows menu

But upon selecting the iPhone, the console logs “Failed to connect to player”.

The phone and the computer are on the same Wifi network, are connected via USB, and I am not aware of any network restrictions on the router that would be blocking communication between local addresses.

Any help or things to try would be appreciated

That’s a lot of nice shiny BuildOptions, but for profiling, this is apparently the one that counts now:

“A development build includes debug symbols and enables the Profiler.”

2 Likes

Yeah, AllowDebugging is about script debugging enabled. For better accuracy profiling builds you’d actually want this off. So far it’s always been necessary to have a development build but maybe the debugging option forced development mode on before?

1 Like

Thanks both! This is correct

2 Likes

Cool, we’ll clarify this in the manual too and ideally directly in UI as well if possible