Search code examples
iosxcodecompile-timebuild-system

Cycle inside ; building could produce unreliable results: Xcode Error


I am trying to move to the new build system when compiling with Xcode. 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'

Screenshot added

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?


Solution

  • I was finally able to resolve this by moving Embed App Extensions script in Build Phases of main Target to last position.