When building a large iOS application with a shared scheme in a workspace in Xcode (latest, Xcode 9.2, 9C40b) using the new build system, I started seeing this message:
Verify final result code for completed build operation
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons.
One possible cause is if there are too many (possibly zombie) processes; in this case, rebooting may fix the problem.
Some individual build task failures (up to 12) may be listed below.
Nothing I seem to do can make it go away. I tried restarting, cleaning, wiping derived data - nothing wanted to work. In the console I see this warning that seems to be related:
unable to create build operation: Error Domain=com.apple.xcbuild Code=2
"unknown error while handling message: missingWorkspaceContext"
UserInfo={NSLocalizedDescription=unknown error while handling message: missingWorkspaceContext}
Curiously, every time I try to build and it fails, the error code increments with the rest of the text remaining the same.
We have a large project that contains a couple dozen subprojects. Because it gets a little hairy to manage, we created a workspace that flattens and organizes things a bit. The new build system works fine on any of the projects individually, but NOT from the workspace, which most of our developers work from.
Are there any verbose logging options or something I could turn on to help get to the bottom of this? xcodebuild seems to work fine with the workspace and doesn't produce this error - just the IDE.