David
David

Reputation: 183

Build service could not create build operation

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.

Upvotes: 6

Views: 5512

Answers (4)

Mıktad Tahir Durak
Mıktad Tahir Durak

Reputation: 2884

At the root Folder run

flutter clean
flutter pub get

Then

cd ios
rm -rf Pods/
rm -rf .symlinks/
rm -rf Podfile.lock
pod install

Back to the root folder

cd ..
flutter build ios --release

Run Archive at Xcode. If the issue persists, clean the build folder on Xcode, close the log screens, and archive again. If you can't clean the build, try resetting Xcode. It worked for me.

Upvotes: 0

Rockbean
Rockbean

Reputation: 1

Close this error project or workspace and open again, then build build success

Upvotes: -3

Charlie Fish
Charlie Fish

Reputation: 20546

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.

Upvotes: 7

David
David

Reputation: 183

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.

Upvotes: 3

Related Questions