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:
- How to Solve Xcode M1 simulator Error
- How to Solve brew ERROR in `initialize‘: Version value must be a string; got a NilClass ()
- How to Solve error C2039: “to_ String “: not a member of” STD “
- How to Solve Error: IncompleteElementException: Could not find result map…
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- How to parse JSON string in.Net [error reading job object from jsonreader. Current jsonreader item is not an obj]
- How to Solve Error: Cannot find the declaration of element ‘beans’.
- Overleaf PDF Rendering Error Something went wrong while rendering this PDF [How to Solve]
- How to Solve Koa Error: Cannot find module ‘koa-router‘
- How to Solve VScode 2022 error: msvcp110d.dll not found
- How to Solve Error: Cannot find module ‘webpack/lib/RequestShortener’
- Rendering Problems The following classes could not be instantiated: xml layout file could not be loaded
- [Solved] Mavenwas cached in the local repository
- How to Solve Error:‘itoa’ was not declared in this scope
- How to Solve Loadrunner Error: Failed to find .cfg file
- feign.FeignException: status 404 reading XXXClient#XXMethod(String)
- Markdownpad2 Error: Html Rendering Error (An error occurred with the Html rendering component.)
- MacOS Mojave uses SMB LAN share as backup disk of timemachine time machine. Disk does not support time machine backups. (error 45)
- How to Solve AspectJ error: error at ::0 can’t find referenced pointcut XXX