62

I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before.

I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward.

Then I switch to delay mode, still got nothing. Then I create a simple new project, which should have "little data volume", still got nothing.

I checked help, I googled, seems like no one has encountered this before. Does anyone have any clue about this?

enter image description here

Jessedc
  • 12,320
  • 3
  • 50
  • 63
Carusd Ray
  • 993
  • 7
  • 11
  • 14
    I found that Instruments only can work for an iOS 11.3 device. – Harrison Xi Apr 10 '18 at 07:20
  • 8
    I was hitting the same issue on 10.3.1 and 11.2.1 devices that had no problem with XCode 9.2 After upgrading one device to 11.3, time profiling started working again on it. A bit annoying for a developer wanting to keep older iOS version around to test specific problems. Thanks for the tip. – Laurent Benes Apr 10 '18 at 15:32
  • @HarrisonXi, yes works for me, thx. I wonder if they would release a new version to fix it. Because you cant update every device, for compatible debug reason. – Carusd Ray Apr 14 '18 at 07:11

2 Answers2

20

I was hitting the same issue for a week.

Since today, I change the Xcode Version back to Xcode 9.2 - and the problem was resolved.

It seems like this is a bug of Xcode 9.3, I just filed an issue to Apple yesterday. No reply has been received.

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113
suxinde2009
  • 246
  • 2
  • 7
  • XCode 9.4.1 with the device on iOS 11.4.1 works for me. – Joseph Aug 14 '18 at 18:31
  • @RandyHill I come across the same issue when I am using Xcode 9.4 profile my project for an iOS 9.3.3 device, it seems like that Instrument of XCode 9.4 doesn't work for iOS 9.3.3, maybe this version of Xcode doesn't support iOS system version under iOS 11, that real sucks for developer profiling app to older version device. – suxinde2009 Aug 15 '18 at 02:25
  • @suxinde2009 Thanks for the update, I was profiling under iOS 11. I'll try Xcode 9.4.1 since it worked for Joseph. – SafeFastExpressive Aug 16 '18 at 16:25
  • @RandyHill - Update your Xcode to 9.4.1 and iPhone also to 11.4.1 Works for me. – Shashank Agarwal Aug 30 '18 at 08:03
  • XCode 10.1 with the device on iOS 12.1 works for me. – Kosuke Ogawa Nov 13 '18 at 02:33
1

I had two versions of Xcode installed, and was experiencing this when using the Instruments associated with the oldest version of Xcode (9.4.1).

I solved the issue by using the Instruments associated with the newest version of Xcode I had installed (10.0)

Marmoy
  • 8,009
  • 7
  • 46
  • 74