Search Unity

How to run the profiler to report from actual ios device?

Discussion in 'iOS and tvOS' started by betonos, Apr 2, 2012.

  1. betonos

    betonos

    Joined:
    Apr 2, 2012
    Posts:
    12
    Hi,

    I've got Unity Pro 3.5 + iOS Pro, XCode 4.3.2. I'm trying to attach profiler to my iDevice. In the build settings, I've checked:

    [V] Development Build
    [V] Autoconnect Profiler

    I do build run, the project compiles in XCode, then launches but profiler doesn't attach to it.
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Try attaching it manually from the profiler window. If you cant see it its a network problem.
     
  3. Profas

    Profas

    Joined:
    Oct 15, 2009
    Posts:
    73
    Also, your device should not be connected to the Xcode.
    1) Build app with Xcode.
    2) Disconnect and run app again.
    3) Editor Profiler should see your device.
     
  4. betonos

    betonos

    Joined:
    Apr 2, 2012
    Posts:
    12
    @profas: thanks, this did the trick. I thought it somehow connects through XCode and I've had the device connected to XCode via cable all the time.
     
  5. qamarzaman

    qamarzaman

    Joined:
    Jul 1, 2010
    Posts:
    85
    In Xcode Projectm,

    In AppController.mm file

    set ENABLE_INTERNAL_PROFILER to 1

    and keep the device attached

    i hope this helps