-
I created an Xcode project and installed SwiftUSD with Swift Package Manager, which is linked below. However, after installing, import PixarUSD and tried to build the project with the default code when newly created, but before the code is built, many errors occur as follows. Multiple commands produce '/Users/name/Library/Developer/Xcode/DerivedData/SwiftUSDPackageCamera-gpbofwclcozunoespbordaiizrfp/Build/Products/Debug-iphoneos/Frameworks/Alembic_301B1C71A317B7B4_PackageProduct.framework' Target 'Examples' (project 'SwiftUSD') has copy command from '/Users/name/Library/Developer/Xcode/DerivedData/SwiftUSDPackageCamera-gpbofwclcozunoespbordaiizrfp/Build/Products/Debug-iphoneos/PackageFrameworks/Alembic_301B1C71A317B7B4_PackageProduct.framework' to '/Users/name/Library/Developer/Xcode/DerivedData/SwiftUSDPackageCamera-gpbofwclcozunoespbordaiizrfp/Build/Products/Debug-iphoneos/Frameworks/Alembic_301B1C71A317B7B4_PackageProduct.framework' Multiple commands produce '/Users/name/Library/Developer/Xcode/DerivedData/SwiftUSDPackageCamera-gpbofwclcozunoespbordaiizrfp/Build/Products/Debug-iphoneos/Frameworks/Alembic_301B1C71A317B7B4_PackageProduct.framework/Alembic_301B1C71A317B7B4_PackageProduct'..... In the Swift Package Manager, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
This is generally correct, for files ( The error output you provided above appears to indicate that you have added some other framework not related to the SwiftUSD package to your project, perhaps some sort of private or third-party framework you added for Alembic? The SwiftUSD package already brings in an Alembic dependency from the MetaverseKit package which is automatically compiled from source and linked against the Once you've removed your external
To ensure the build graph is cleanly refreshed to no longer expect the external Alembic framework that you had initially added to your project. |
Beta Was this translation helpful? Give feedback.
-
@x001017 going through Xcode now (through Xcodeproj, as opposed to the SwiftPM route), wow! Xcode really overcomplicates the simplicity of SwiftPM's package manifest system. Hidden through various settings, I believe you should get it to work.
I am sorry that Xcode's poor development experience had blocked your team's software development. Hopefully, once you follow the above steps, things can begin moving along smooth for you. |
Beta Was this translation helpful? Give feedback.
-
And I built the project to confirm that these are the steps that worked for me. |
Beta Was this translation helpful? Give feedback.
@x001017 going through Xcode now (through Xcodeproj, as opposed to the SwiftPM route), wow! Xcode really overcomplicates the simplicity of SwiftPM's package manifest system.
Hidden through various settings, I believe you should get it to work.
Create a new app in Xcode.
Add the SwiftUSD package to your Xcode project like so:
Additionally you must add the PixarUSD product to your app's target.
A very important step, and one that is way too hidden, you need to enable C++ interoperability mode here:
Equally as important, you need to ensure you set the Swift version to 6, here:
You need to change yet another very hidden setting buried in your Xcode project, which is to set the…