update package setting to fix compile Error (#2780)

since SpineCppLite expose c-interface only and does not expose cpp interface

c++ interperability is no-op and just causing compiler crash.
So we could add linker flag to ensure SpineCppLite is build with C++ while removing c++ interperability mode
This commit is contained in:
Byeong Gwan 2025-04-08 18:50:18 +09:00 committed by GitHub
parent f037c05b73
commit 093b0d432d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,14 +21,14 @@ let package = Package(
dependencies: [
"SpineCppLite", "SpineShadersStructs"
],
path: "spine-ios/Sources/Spine",
swiftSettings: [
.interoperabilityMode(.Cxx)
]
path: "spine-ios/Sources/Spine"
),
.target(
name: "SpineCppLite",
path: "spine-ios/Sources/SpineCppLite"
path: "spine-ios/Sources/SpineCppLite",
linkerSettings: [
.linkedLibrary("c++"),
]
),
.systemLibrary(
name: "SpineShadersStructs",