I'm creating a watchOS app which depends on an iOS app. Both those apps have their corresponding targets. Both targets link my local SPM library, which have single target. This target calls R.swift plugin which generates file in the output directory.
Unfortunately, I got the following error when I try to build the app:
Multiple commands produce '/Users/XXXX/Library/Developer/Xcode/DerivedData/watchOSTestPAckage-aqjgymttvegntyaogebiuclgbsyb/SourcePackages/plugins/resources.output/Strings/RswiftGeneratePublicResources/Strings/R.generated.swift'
I know that this error is connected with one specific library, but the error can occur also sometime in the future in other similar cases.
Here is minimal reproducible example: https://github.com/RobertDresler/RSwift-in-shared-package
Don't you know, what could cause this problem? Thank you for any help with solving this.