mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[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:
parent
feb4597da5
commit
fba64447bf
@ -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: [
|
||||
|
||||
7
spine-ios/Sources/SpineiOSWrapper/stub.swift
Normal file
7
spine-ios/Sources/SpineiOSWrapper/stub.swift
Normal file
@ -0,0 +1,7 @@
|
||||
//
|
||||
// stub.swift
|
||||
// spine-ios
|
||||
//
|
||||
// Created by pbk20191 on 11/7/25.
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user