From 093b0d432d000a25749bf537d1133e0bdb9d7212 Mon Sep 17 00:00:00 2001 From: Byeong Gwan Date: Tue, 8 Apr 2025 18:50:18 +0900 Subject: [PATCH] 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 --- Package.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Package.swift b/Package.swift index 9dae3df94..a559c8a36 100644 --- a/Package.swift +++ b/Package.swift @@ -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",