I am trying to move to the new build system when compiling with Xcode 10. However, it gives 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'
Even after removing the problem file, I get same for another xib/storyboard. How can I solve this error without reverting to the legacy build system?
In the target's
Scheme
, find the labelBuild
, and ensure thatFind Implicit Dependencies
is not checked. These steps may work.My solution was simply to Clean Build Folder then re-build.
I had a similar issue with a mixed interaction between Swift, Objective-C and CoreData: in my project (written in Swift) I made use of Core Data's autogenerated Swift classes as well.
But at one point I needed an Objective C class with public properties (defined in its header counterpart) referring the the core data entities.
As soon as I changed the CoreData model, XCode tried to rebuild the classes and I got hung with the indicated cycle build error.
After an initial moment of despair, as I did not have any compile header phases in my project to change the order of, I found out that solution was quite simple:
In the
myObjCClass.h
I removed the shared Swift header import statement and changed it with a@class
directive:and I moved the
#import "ProjectName-Swift.h"
statement into themyObjCClass.m
class definition file.And it builded no worries.
I have tried things from this page but the only thing that has helped me was that I made a copy of the target and updated the name of the copy (removed the copy suffix), and deleted the old one, and did pod install afterwards.