Cycle inside ; building could produce unreliable r

2020-05-13 20:27发布

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'

Screenshot added

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?

22条回答
混吃等死
2楼-- · 2020-05-13 21:05

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

查看更多
Rolldiameter
3楼-- · 2020-05-13 21:05

Xcode 10.2.1/Unit Test Target. My unit test target is independent of host target to improve building time. Solve it by uncheck Find Implicit Dependencies in Scheme - Build options, As i specify all dependencies in Build Settings - Compile Sources.

查看更多
smile是对你的礼貌
4楼-- · 2020-05-13 21:05

I faced this problem after updating Xcode to version 11.4. Downgrading to 11.2.1 fixed it.

查看更多
欢心
5楼-- · 2020-05-13 21:05

I solved this by moving the "Run Script" to the top of the build phases.

查看更多
Lonely孤独者°
6楼-- · 2020-05-13 21:06

I fixed my problem by moving the 'Copy Bundle Resources' Build Phase before all my 'Copy Files' & 'Link Binary with Libraries' Build Phases

查看更多
霸刀☆藐视天下
7楼-- · 2020-05-13 21:11

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.

查看更多
登录 后发表回答