-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal inconsistency error (didStartTask) #6705
Comments
This looks like output from XCBuild, so this should be Xcode-specific. cc @abertelrud |
This definitely looks like a bug around XCBuild, and it's still an issue in Xcode 15.0 RC. The build error strings originate from We're hit by this issue almost daily. Having to first realise that you'd been debugging an old build all along because the build silently failed, and then clean all and rebuild… Can't say it's a great developer experience. |
Thanks for your report, but please file it through http://feedbackassistant.apple.com/ since the SwiftPM project doesn't track issues in Xcode and/or Xcode Cloud. |
We encountered this today using GitHub runner |
Xcode 15.1 beta reports the inconsistency as an error now which is a step in the right direction 👍 |
Still a bug in Xcode 15.1. This is a crippling problem for anyone using SPM plugins from Xcode. Cleaning the build folder often works around this. Less drastically, simply clearing the error ( |
I've also found that closing and re-opening Xcode is the quickest way (faster than clean, slower than clear all issues) to (usually) resolve this issue. |
Seconding this, this dramatically slows down dev time |
Coming in here to add another +1, extremely annoying and crippling to dev time. Only way around it for me is to do a clean / full rebuild. Happens almost every single time I make a code change. |
It has also gotten much much worse with Xcode 15.3. The only "improvement" is that the message now appends: "Build again to continue". Thanks, I will. 🙄 Can someone from Apple (e.g., @abertelrud or @neonichu) please escalate this internally? Feedback reports are just ignored. |
Has anyone filed feedback with an ID to mention/dupe? |
@sebj Yes here: |
FTR, still a major problem in Xcode 15.4 released yesterday. |
Yes, I've encountered it several times this AM on Xcode 15.4. |
Have the similar issue with Xcode 15.4.0, we use both swiftGen and sourcery plugin for code generationg in Xcode. |
In Xcode 16 Beta it seems to have been fixed:
|
Description
When Package.swift contains a plugin that generates code using `.prebuildCommand'. this leads to a build error:
For example SwiftGenPlugin has this issue SwiftGen/SwiftGenPlugin#15
Or others plugin like Sourcery.
To get rid of this error, you need to call the build cleanup and rebuild the project.
There are also other discussions of a similar problem:
Expected behavior
Expected Behavior:
The build process should complete successfully without any internal inconsistency errors.
Actual behavior
Actual Behavior:
Xcode displays the internal inconsistency error message and subsequent builds fail to produce the expected result, launching stale products instead.
Steps to reproduce
Swift Package Manager version/commit hash
5.7-5.9(latest)
Swift & OS version (output of
swift --version ; uname -a
)Xcode version: 14.3.1
swift-driver version: 1.75.2 Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
Darwin barredewe 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: