Skip to content
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

Xcode Internal inconsistency error when running Skip plugin #69

Open
marcprux opened this issue Dec 23, 2023 · 1 comment
Open

Xcode Internal inconsistency error when running Skip plugin #69

marcprux opened this issue Dec 23, 2023 · 1 comment

Comments

@marcprux
Copy link
Contributor

When building a project with the Skip plugin, the following Xcode errors can occur and halt the build:

Internal inconsistency error: received multiple target ended messages for target ID '6' or received target ended message but did not receive corresponding target started message, while retrieving parent activity in taskStarted message.
Internal inconsistency error: received multiple task ended messages for task ID '8' or received task ended message but did not receive corresponding task started message.

Performing a clean re-build is the only way to work around this. Sometimes this needs to be done multiple times.

There is no obvious trigger for this error – it occurs at random when building a project. I suspect it has to do with Xcode running multiple simultaneous plugins invocations (for all the dependent Skip modules), and having their communication pipelines mixed up somehow. However, since Xcode 15 removed the ability to disable the "Parallelize Build" setting for the scheme, it is not possible to test this hypothesis directly.

This issue is reported by other SPM plugins when run from within Xcode (e.g., SwiftGen/SwiftGenPlugin#15), and has been a bug since Xcode 14.3, and persists through 15.1. See swiftlang/swift-package-manager#6705.

@marcprux
Copy link
Contributor Author

Screenshot 2023-12-23 at 10 58 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant