How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode

Recently, when I created a new Swift project on Xcode 9.4.1 version, I found that after the new project was created, it would be found that the console would pop up a sentence at intervals.

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

It is said that the status bar cannot find the cache during the process rendering. I checked some information on the Internet and said that the [[UIApplication sharedApplication] setStatusBarOrientation method was used in the project, and set the View controller-based status bar appearance in info.plist to YES . Then call the following method in the base class or the required page

-(BOOL)prefersStatusBarHidden{
    return NO;
} 

After using it, I found it was useless . Later I found that even if I created a new empty project, this problem would occur without writing a single line of code, and I was confused in an instant.

Don’t talk nonsense and just talk about the solution. In fact, this is not your fault, but the operating system log record, so just turn it off. The specific solution is:

Add in Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables

OS_ACTIVITY_MODE: disable.

The specific operation screenshots are as follows:

If there is an error message that cannot be printed, check it and cancel it first, or set the View controller-based status bar appearance to No in the info.plist.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *