[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)

This commit is contained in:
Byeong Gwan 2025-11-10 22:44:44 +09:00 committed by GitHub
parent feb4597da5
commit fba64447bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -25,10 +25,17 @@ let package = Package(
),
.library(
name: "SpineiOS",
targets: ["SpineiOS"]
targets: ["SpineiOSWrapper"]
),
],
targets: [
.target(
name: "SpineiOSWrapper",
dependencies: [
.target(name: "SpineiOS", condition: .when(platforms: [.iOS, .visionOS, .tvOS, .macCatalyst ]))
],
path: "spine-ios/Sources/SpineiOSWrapper"
),
.target(
name: "SpineiOS",
dependencies: [

View File

@ -0,0 +1,7 @@
//
// stub.swift
// spine-ios
//
// Created by pbk20191 on 11/7/25.
//