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?
It seems that you need to change the order of the build phases within your Pods targets. For me, moving Headers above the rest worked. You can automate this in your Podfile:
Core_Data
I had the same problem and error but mine happened when I "Created NSManagedObject Subclass" for my entity and I faced this error. So if you think your error is same as mine about Core Data what can probably help you (and helped me ) is to:
I think because in other scenarios Xcode creates a file automatically and when we create another one it causes a conflict.
My issue had to do with a cyclical dependency between my swift bridging header and my objective c files.
In my objective c header files I had a
#import "...-swift.h"
file and then in a couple of my swift files I was including those files with said import and thus causing a cyclical dependency.This is the StackOverflow that led me to find the solution:
Objective C, Swift Interoperability issue due to circular dependency
How to prevent circular reference when Swift bridging header imports a file that imports Hopscotch-Swift.h itself
EDIT:
I wound up converting the above files to swift and this solved my issue.
Same issue on
Version 10.0 beta 3 (10L201y)
and I wanted to have the New Build System.Problem is had disabled
Enable Modules (C and Objective-C)
in
Build Settings -> Apple Clang - Language - Modules
After enabling it (set to YES) got rid of the Error.
I've met similar issue when tried to archive my project on Xcode 10. Here's the detail text:
Fixed it by setting
$(USER)
inmytarget -> Build Settings -> Deployment -> Install Owner
Following two options worked for me: File->Project/Workspace settings.
1, Change the build system to "Legacy Build system" in File->Project Settings
2, Edit Scheme and Select "Parallelize Build" option under Build section.