113

I get the above runtime message after I upgraded to Swift4.1 and Xcode 9.3. Before the upgrade I did not have this message in my console window.

Status bar could not find cached time string image. Rendering in-process.

comes up every few minutes as long as I have the App running.

It sees to me there is no negative side effect, my App is running, as usual, I have not seen any problems.

I use the standard Status Bar, have not changed to modify it in any way.

Question 1: Would there be a problem originating from this warning under situations i have not come across yet?

Question 2: Does anyone know how I can get rid of this warning?

TheTiger
  • 13,264
  • 3
  • 57
  • 82
mac_eric
  • 1,230
  • 3
  • 12
  • 12
  • 1
    Strange. I am getting this too after upgrading my test device to iOS 11.3 and Xcode 9.3 – Sudara Mar 31 '18 at 09:44
  • I'm getting this too, so far it appears to be harmless. – Gereon Mar 31 '18 at 09:49
  • 1
    Its happening once a minute (for me at least) just after the time rolls over into the new minute. – Simon Jenkins Mar 31 '18 at 09:55
  • Its happening in my case as well but no issues found till now related to performance etc. It seems like an Xcode bug, going to create a ticket about it BTW. As per my understanding if it is an Xcode bug then it will not create any issues to your project. – onCompletion Mar 31 '18 at 09:58
  • i have the same issue too after updating to swift 4.1 – Wael Apr 02 '18 at 16:13
  • 1
    Same to me ;) with Xcode 9.3 and Swift 4.1 – Niko Klausnitzer Apr 03 '18 at 08:18
  • same problem with Xcode 9.4 beta – fivewood Apr 12 '18 at 15:01
  • 1
    I am running my app on Device (iPhone 6 capacity 16 GB available 5.48 gb) and I have also seen this warning but when I got this message in Xcode console log my app got stuck. – Ravi Raja Jangid Jul 12 '18 at 07:44
  • There's nothing in the message itself to suggest that it's flagging an error or warning condition. More the kind of thing that gets put in to help development, and left in even when it's no longer required. – JulianSymes Jan 21 '19 at 15:45

6 Answers6

94

This bug/debug note is present in iOS SDK bundled with Xcode 9.3+

Update: not fixed in Xcode 9.4.1 (9F2000)
Update: not fixed in Xcode 10 (10A255)
Update: not fixed in Xcode 11 betas

I think you can safely ignore it. New versions of iOS/macOS sometimes contain informational debugging messages, and they generally get removed at the next release.

Community
  • 1
  • 1
Lal Krishna
  • 15,485
  • 6
  • 64
  • 84
13

Same issue was occurring for me too. To overcome this, I did this

Goto Target -> Deployment Info -> Unchecked 'Hide status bar'

This one resolved my issue. For me, this was the 'Deployment Info' setup.

enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
sRoy
  • 267
  • 2
  • 5
  • 3
    I tested with the checked and the unchecked 'Hide status bar' option. Neither option did prevent the message _'Status bar could not find cached ..... '_ coming up again every other minute. – mac_eric Apr 06 '18 at 14:30
  • Did you check info.plist is there anything added related to Status Bar? – sRoy Apr 06 '18 at 14:59
  • I have nothing in the info.plist related to the Status Bar. I am using the default Status Bar. – mac_eric Apr 07 '18 at 02:16
  • Can you plz share, xcode version, and device, in which you r getting this? And also, do ur app supports landscape? – sRoy Apr 07 '18 at 06:04
  • I am using Xcode 9.3 (9E145) and have this issue when using iPad Air 2 and iPhone 8. Yes the App supports landscape and Portrait orientation. – mac_eric Apr 07 '18 at 06:40
  • Can you please stop orientation once, and check? – sRoy Apr 07 '18 at 08:50
  • Switched to Portrait only - message still comes back and then switched to Landscape only and message comes back again. – mac_eric Apr 07 '18 at 09:11
  • For me, its coming only if I check ‘Hide status bar’. Let me check with other settings. – sRoy Apr 07 '18 at 09:36
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/168445/discussion-between-mac-eric-and-sroy). – mac_eric Apr 07 '18 at 10:12
  • The warning disappear when I have View controller-based status bar appearance set to True in the plist –  Apr 10 '18 at 08:39
  • Thanks for the tip but unfortunately this doesn't work for me either. The message come up again. – mac_eric Apr 10 '18 at 08:59
  • 4
    Thanks! It worked for me, actually, it was unchecked at first, I checked it and run and then unchecked again and it worked – Saeed Ir Jun 08 '18 at 00:10
1

I am also seeing this warning appear, and in answer to Question 1, I am also seeing potentially very nasty behaviour associated with it.

Running something close to a basic sample animated triangle Metal app, but with

renderPassDescriptor.colorAttachments[0].loadAction = .load

such that the frame isn't cleared every frame. What seems to be happening is that every other time the warning message is logged, iOS also gets some part of its management of graphics state confused so that I witness a violent flashing of parts of the image (which then goes away again later).

How likely this situation would be to emerge in a 'real' app I'm not sure, but it's definitely not something you want users to end up seeing.

I haven't fixed the problem here thus far; 'Hide status bar' and 'Requires full screen' settings don't help.

PeterT
  • 1,454
  • 1
  • 12
  • 22
  • Of course you can;'t fix it. You have your metal state. Apple has it's GLES state for rendeing statusbar and these two apparently collide. File a bug with them proviging a sample app to help them out sort it out on a real world case. This might not surface with vanilla uikit users such as myself. – Anton Tropashko Jul 30 '19 at 06:22
1

In my case, it was hiding navigation bare by

self.navigationController?.isNavigationBarHidden = false

When you are hiding the navigation bar, it hides status bar too!. just use

self.navigationController?.navigationBar.isHidden = true

instead. And you will have your status bar back.

mehdi
  • 2,703
  • 1
  • 13
  • 15
  • Why does the first line have `= false` and the second `= true`? Are you trying to confuse the reader, or is there a purpose. (If there's no purpose, please correct and write `true` or `false` on both lines.) – meaning-matters May 11 '19 at 10:24
0

To answer Question 2 drawing upon PeterT answer that addresses Question 1: not only you can not get rid of this warning, but you mustn't, cause it means that the underlying problem is anything, but benign. At least in some scenarious.

This also means that the DEC Field Circus Engineer dance swapping the wheels that flat in meta info for the project would rightfully make you look like a clown.

Anton Tropashko
  • 5,486
  • 5
  • 41
  • 66
-1

I was able to get rid of this warning, by checking the "Requires Full Screen" in Target-> Deployment Info.

Checking this option may have some side-effects in iPad, so you should do it having this in mind.

Esteban Vallejo
  • 697
  • 1
  • 5
  • 11