Closed giln closed 1 month ago
Ah, this is because the target you're adding the SwiftUSD
dependency to is missing the following in your Package.swift
:
.target(
name: "MyTarget",
dependencies: [
.product(name: "PixarUSD", package: "SwiftUSD")
],
swiftSettings: [
// you are missing this.
.interoperabilityMode(.Cxx)
]
)
Without that line, swift attempts to compile all of the Pixar USD code as C instead of C++.
You will need this line in the swiftSettings
array for both library targets as well as executable targets.
Hopefully that clears things up!
Ok thanks a lot for your fast answer )
Feel free to reach out if you run into anything else!
Description of Issue
Steps to Reproduce
System Information (OS, Hardware)
Mac OS Sequoia Xcode 16
Package Versions
24.8.3
Build Flags