Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cycle inside ; building could produce unreliable results: Xcode Error

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' 

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?

like image 335
Sahil Kapoor Avatar asked Jun 05 '18 21:06

Sahil Kapoor


People also ask

How do I clean up and build in Xcode?

Clean the Build Folder To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .

How do I get to build phases in Xcode?

To view the build phases for a target, select the target and navigate to the Build Phases tab, as shown in the following figure. To add a new build phase, click the Add button (+) and select an appropriate build phase from the pop-up menu. Xcode disables any menu options that aren't valid.


2 Answers

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.

like image 157
Akshay Sunderwani Avatar answered Sep 20 '22 14:09

Akshay Sunderwani


I was having this issue with Cocoapods. The solution was to clean the build folder re-install all pods, and then rebuild the app. The issue resolved itself that way.

like image 20
JAL Avatar answered Sep 16 '22 14:09

JAL