14

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

Bhavesh Nayi
  • 3,626
  • 1
  • 27
  • 42
Pavan kumar C
  • 393
  • 1
  • 4
  • 15
  • Have you found a solution? I have the same issue. – wzso May 06 '19 at 03:17
  • 1
    Yes, I got mine working with these steps **1.** Quit Xcode **2.** Unplug the iPhone/iPad **3.** Start the Xcode and plug the device **4.** Try running the core animation. If it still the same **5.** Open a different project and run the core animation **6.** Then come back and try with your Project – Pavan kumar C May 07 '19 at 05:01

3 Answers3

24

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
Jaysen Marais
  • 3,956
  • 28
  • 44
1

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

Franz Wang
  • 596
  • 4
  • 14
0

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

yuanjilee
  • 429
  • 5
  • 16