Tag Archives: Xcode error

[Solved] Xcode error: cycle inside*******; building could produce unreliable results.

Xcode Error: Cycle inside *******; building could produce unreliable results. This usually can be resolved by moving the target’s Headers build phase before Compile Sources.
Cycle details:


Showing All Issues
Cycle inside rtc_extension; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle details:
→ Target 'rtc_extension' has copy command from '/Users/xxx/Documents/SourceCode/base_extension/xxx/third_party/mac/xxx_webrtc.framework' to '/Users/xxx/Documents/SourceCode/base_extension/xxx/bin/Release/xxx_webrtc.framework'
○ Target 'rtc_extension' has link command with output '/Users/xxx/Documents/SourceCode/base_extension/xxx/bin/Release/librtc_extension.dylib'
○ Target 'rtc_extension' has copy command from '/Users/xxx/Documents/SourceCode/base_extension/xxx/third_party/mac/TTTRtcSDK.framework' to '/Users/xxx/Documents/SourceCode/base_extension/xxx/bin/Release/TTTRtcSDK.framework'

Error reason:

Xcode 10 uses new build system by default, which is different from xcode9.

 

Solution:

Modify build system
in Xcode menu bar – >File -> Progect setting, modify the build system to legacy build system, and then clean and compile.

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.