内循环;构建可能会产生不可靠的结果:Xcode 错误
问题描述:
在使用 Xcode 10 进行编译时,我试图移至新的构建系统.但是,它给出了以下错误:
I am trying to move to the new build system when compiling with Xcode 10. However, it gives the following error:
Cycle details:
→ Target 'project' : LinkStoryboards
Target 'project' has compile command with input '/Users/project/Commons/Components/ScreenshotSharing/ViewController/AppShare.storyboard'
Target 'project' : ValidateEmbeddedBinary /Users/project/Xcode/DerivedData/project-hgqvaddkhmzxfkaycbicisabeakv/Build/Products/Debug-iphoneos/project.app/PlugIns/stickers.appex
Target 'project' has process command with input '/Users/project/Resources/Info.plist'
Target 'project' has compile command with input '/Users/project/Commons/Components/ScreenshotSharing/ViewController/AppShare.storyboard'
即使删除了问题文件,我对另一个 xib/storyboard 也得到了相同的结果.如何在不恢复到旧版构建系统的情况下解决此错误?
Even after removing the problem file, I get the same for another xib/storyboard. How can I solve this error without reverting to the legacy build system?
答
我终于能够通过将 Embed App Extensions
脚本移到主要 Target 的 Build Phases
来解决这个问题到最后一个位置.
I was finally able to resolve this by moving Embed App Extensions
script in Build Phases
of main Target to last position.