xcode报错: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'
错误原因:
Xcode 10 默认使用的build system是New build system,与Xcode9不同。
解决办法:
修改build system
在Xcode菜单栏 -> File -> progect Setting,将build system修改为legacy build system,然后clean后编译。