首页 > 解决方案 > 内循环;构建可能会产生不可靠的结果:Xcode 错误

问题描述

使用 Xcode 10 进行编译时,我正在尝试迁移到新的构建系统。但是,它给出了以下错误:

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 也有同样的看法。如何在不恢复到旧版构建系统的情况下解决此错误?

标签: iosxcodecompile-timebuild-system

解决方案


For anybody having an issue with Xcode 10 build system, follow the following steps to fix it:

  1. In Xcode, go to File->Project/Workspace settings.
  2. Change the build system to Legacy Build system.

It will resolve the build issue with the new Xcode.

If you want to work with the new build system, then you can find the troubleshooting help from this apple Xcode help page.


推荐阅读