skip to Main Content

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


  1. Chosen as BEST ANSWER

    The error seemed to be resolved by doing the following:

    1. Close Xcode
    2. Open finder, and delete the derived data folder: ~/Library/Developer/Xcode/DerivedData
    3. Open finder, CMD+SHIFT+G and go to ~/Library/Caches/org.swift.swiftpm. Right-click > Show Package Contents, and delete the repositories folder and repositories.lock file.
    4. Open Xcode and let it build naturally

    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.


  2. Closing and opening Xcode seems to also remove this error.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search