R.swift 加入后遇到 Cycle inside 问题解决办法

317 阅读1分钟
Cycle inside MyApp; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.

出这个错的原因是

image.png

其实报错已经说明了,报错的原因是 Rswift添加的脚本 运行时顺序 比编译脚本的运行顺序 晚 造成文件不存在引起编译错误

只需要调换一下顺序即可修复此问题