Hello,
when trying to add Usercentrics packages to our app, we get a duplication error because a .framework
is added during the Link Binary With Libraries
build phase although a .xcframework
is already there. This leads to duplication errors during compilation.
However using the same packages with a vanilla Xcode / SPM project (tuist-uc-issue-spm.zip) it works just as expected. And also, if I use an older version of the package in a tuist project (2.9.1 instead of 2.13.0 for example) it also works (tuist-uc-issue-tuist_working.zip). It seems like the package comes with additional frameworks which tuist cannot interpret correctly?
On a sidenote: Removing UsercentricsUI.framework
from the Link Binary With Libraries
build phase manually resolves the issue.
tuist install
tuist generate -n
error: Multiple commands produce '/Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework'
note: Command: ProcessXCFramework /Users/mflknr/Developer/Repositories/tuist-uc-issue-tuist/Tuist/.build/artifacts/usercentrics-spm-ui/UsercentricsUIFramework/UsercentricsUI.xcframework /Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework ios simulator
note: Target 'UsercentricsUI' (project 'UsercentricsUI') has create directory command with output '/Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework'
error: Multiple commands produce '/Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework/UsercentricsUI'
note: Command: ProcessXCFramework /Users/mflknr/Developer/Repositories/tuist-uc-issue-tuist/Tuist/.build/artifacts/usercentrics-spm-ui/UsercentricsUIFramework/UsercentricsUI.xcframework /Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework ios simulator
note: Target 'UsercentricsUI' (project 'UsercentricsUI'): Libtool /Users/mflknr/Library/Developer/Xcode/DerivedData/TuistUcIssueTuist-aekkyzcjiqxwmtavswaiqzkremsg/Build/Products/Debug-iphonesimulator/UsercentricsUI.framework/UsercentricsUI normal
Sonoma 14.3.1
4.6.0
15.1.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too