Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 742
Pavan kumar C Avatar asked Apr 25 '19 12:04

Pavan kumar C


2 Answers

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
like image 112
Jaysen Marais Avatar answered Nov 20 '22 18:11

Jaysen Marais


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

like image 20
Franz Wang Avatar answered Nov 20 '22 19:11

Franz Wang