Reputation: 879
I am trying to build xcode (14.3) project and getting this error. Any idea how to fix it?
error: Build service could not create build operation: unable to load transferred PIF: The workspace contains multiple references with the same GUID 'PACKAGE:1YZON8U0E6OSQJJ6SVUQ2B53ENY2SJMKC::MAINGROUP'
Upvotes: 26
Views: 18727
Reputation: 879
This issue showed up after Xcode auto upgraded to 14.3. I downgraded to 14.2 and did not have errors anymore.
Upvotes: 0
Reputation: 4948
In my case, this was a package problem. I noticed that when I try to update packages - a few have red error icons. Xcode doesn't give you a clue about it.
I resolved it by updating credentials for GitHub, GitLab, etc. In the "report navigator" (it is the last tab) under Resolve Packages, see the error at the bottom and scroll up to one that actually failed. You will see something like:
github.com: Authentication failed because the credentials were missing
Upvotes: 3
Reputation: 1607
Doing a File > Packages > Reset Package Caches works for me.
Upvotes: 0
Reputation: 1536
This error may occur when Xcode cannot resolve a project dependency, e.g. when the project depends on two Swift packages that in turn each want a different version of a third dependency: this leads to a conflict.
Oddly enough, this information won't be shown in the Issue navigator along with the error message. However, if you select your failed build in the Report navigator and expand the logs, it will show the reason.
Upvotes: 1
Reputation: 411
I have run into the same problem today, and I'm also using Xcode 14.3. I quit Xcode then run the project again, it just fixed.
Upvotes: 41