Build service could not create build operation

Viewed 1221

My project worked fine, but after I changed to the last commit Xcode is showing me the strange error message:

Build service could not create build operation: unknown error while handling message: unknownSession

It indexes the files for a few hours and after that is finished the build fails also because of this strange bug.

2 Answers

I got this same error and closing Xcode, deleting derived data, and trying again fixed the issue for me.

I did not have to deleting the code or anything like that as mentioned in the other answer. Just deleting derived data.

For myself, I solved it by deleting the code from my pc completely and fetching it from my GitHub repository again. When I build now it works. The code has not changed but I guess Xcode has some strange bugs.

Related