Ran into this build error in Xcode 14.3 that prevents me from building my app.
Build service could not create build operation: unknown error while handling message: MsgHandlingError(message: "unable to initiate PIF transfer session (operation in progress?)")
There isn’t more detail than that–deleting derived data, restarting Xcode, resetting package caches did not help.
Any ideas?
I tried deleting derived data, restarting Xcode, and resetting package caches to no avail.
2
Answers
The error seemed to be resolved by doing the following:
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
. Right-click > Show Package Contents, and delete therepositories
folder andrepositories.lock
file.Coworker also resolved this by deleting derived data, rebuilding on Xcode 14.1 or 14.2, and then switching back to Xcode 14.3. Will try these steps again next time I see it to confirm if this is a reliable fix.
EDIT: After testing again, these steps don't always work consistently. But it did work after restarting my computer, so that's another thing worth trying.
Closing and opening Xcode seems to also remove this error.