Pavan kumar C
Pavan kumar C

Reputation: 493

Xcode Instruments shows Device is offline

I have been trying to run the app to check the performance using Core Animation profiler in Xcode Instruments. Even though the device is online it shows up Device is offline.

I tried getting the work done as per the various suggestions provided here instruments-device-grayed-out. But nothing worked work apparently.

Could anybody suggest how do i get this working.

Specification: Xcode - 10.2 iOS - 12.2

Here is the screenshot.

enter image description here

Upvotes: 22

Views: 15331

Answers (3)

yuanjilee
yuanjilee

Reputation: 607

If you Not reslove the problem as Jaysen Marais said Reset and Restart Xcode.
You can try this way:

Open Instrument by Left Navigator - Memory - Profile in Instruments and a alert as blew, you should select Restart, and then waiting reopen the Instrument.

Then all is OK for me.

enter image description here

Upvotes: -1

Franz Wang
Franz Wang

Reputation: 724

In my case it turned out that my iPhone is not trusted my computer.

See my answer in this question: https://stackoverflow.com/a/60732605/3051096

Upvotes: 1

Jaysen Marais
Jaysen Marais

Reputation: 4134

The following worked for me (some steps may be unnecessary):

  1. Quit Xcode
  2. Unplug iPhone
  3. Restart iPhone
  4. Start Xcode
  5. Plug in iPhone
  6. Profile

Upvotes: 28

Related Questions