Hi,
we are currently trying to use an SPM plugin to automatically include the icon resources in our app that are used in code.
For that, we use a buildCommand
plugin that automatically extracts the required icon IDs and includes them in a "xcassets" catalog who's path is is later on included in the outputFiles
parameter.
However, as soon as two libraries in the same app use a BuildToolPlugin
which both generate Xcode assets, the app fails with the following error message:
Multiple commands produce '~/Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphoneos/Assets.car'
Target 'Library1' (project 'Library1') has compile command with input '~/Library/Developer/Xcode/DerivedData/.../SourcePackages/library1-git/Library1/IconGenerator/GeneratedResources/IconSet-Library1.xcassets'
Target 'Library2' (project 'Library2') has compile command with input '~/Library/Developer/Xcode/DerivedData/.../SourcePackages/library2-git/Library2/IconGenerator/GeneratedResources/IconSet-Library2.xcassets'
Does anybody have a clue how to bypass this error?
Cheers,
Yannik