Browse Source

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
Byeong Gwan 3 months ago
parent
commit
093b0d432d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Package.swift

+ 5 - 5
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",