Xcode 13.4.1 build error. Multiple commands produce '/Volumes/workspace/DerivedData/

911 Views Asked by At

I'm trying to build one project after 7 months but continuously getting these errors.

I tried,

  1. Delete derived data, clean build but still same error
  2. Tried to change workspace settings - New Build system

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

Issue fixed:

In my project, I had an extension target with the same Product Module Name as the main project target Product Module Name.

How to fixed it?

Select target -> Build settings -> Packaging and set Product Module Name differ from app's target Product Module Name.