Skip to content

Commit fba6444

Browse files
authored
[iOS][swift] move SpineiOS target behind SpineiOSWrapper which gates platform condition, so that the library user won't get compiler crash on non iOS target (macOS) (#2970)
1 parent feb4597 commit fba6444

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ let package = Package(
2525
),
2626
.library(
2727
name: "SpineiOS",
28-
targets: ["SpineiOS"]
28+
targets: ["SpineiOSWrapper"]
2929
),
3030
],
3131
targets: [
32+
.target(
33+
name: "SpineiOSWrapper",
34+
dependencies: [
35+
.target(name: "SpineiOS", condition: .when(platforms: [.iOS, .visionOS, .tvOS, .macCatalyst ]))
36+
],
37+
path: "spine-ios/Sources/SpineiOSWrapper"
38+
),
3239
.target(
3340
name: "SpineiOS",
3441
dependencies: [
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//
2+
// stub.swift
3+
// spine-ios
4+
//
5+
// Created by pbk20191 on 11/7/25.
6+
//
7+

0 commit comments

Comments
 (0)