Update Package.swift
This commit is contained in:
parent
0374457b42
commit
bafe45b10e
|
|
@ -2,16 +2,13 @@
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
// 1. 패키지 이름 (Git 저장소 이름과 일치시켜야 함 -> 언더바)
|
|
||||||
name: "tcmpush",
|
name: "tcmpush",
|
||||||
platforms: [
|
platforms: [
|
||||||
.iOS(.v14)
|
.iOS(.v14)
|
||||||
],
|
],
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
// 2. 고객이 import 할 때 쓰는 이름 (언더바 권장)
|
|
||||||
name: "tcmpush",
|
name: "tcmpush",
|
||||||
// 3. 아래 정의된 target 이름을 정확히 가리켜야 함
|
|
||||||
targets: ["tcmpush"]
|
targets: ["tcmpush"]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
@ -19,21 +16,21 @@ let package = Package(
|
||||||
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "12.0.0")
|
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "12.0.0")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
// 4. 바이너리 타겟 (내부용 이름, 언더바로 통일)
|
// 4. 바이너리 타겟 (내부용 이름)
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "tcmpush_core",
|
name: "tcmpush_core",
|
||||||
// URL은 아까 만드신 Gitea 주소 그대로
|
|
||||||
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.0/tcmpush.xcframework.zip",
|
url: "https://git.ipstein.myds.me/api/packages/seonkyu.kim/generic/tcmpush/1.0.0/tcmpush.xcframework.zip",
|
||||||
checksum: "097aa3e33ce234fa7146757a8236361f17090bb669a2463b13d311229de2d43d"
|
checksum: "097aa3e33ce234fa7146757a8236361f17090bb669a2463b13d311229de2d43d"
|
||||||
),
|
),
|
||||||
|
|
||||||
// 5. 래퍼 타겟 (최종 모듈 이름)
|
// 5. 래퍼 타겟 (최종 모듈 이름)
|
||||||
.target(
|
.target(
|
||||||
name: "tcmpush", // product의 targets와 일치해야 함
|
name: "tcmpush",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"tcmpush", // 위 binaryTarget 이름과 일치해야 함
|
"tcmpush_core", // ⭕️ 여기를 바이너리 타겟 이름으로 수정했습니다.
|
||||||
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
|
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk")
|
||||||
]
|
]
|
||||||
|
// path: "Sources/tcmpush" (기본 경로에 폴더를 만드셨다면 생략 가능합니다)
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
Loading…
Reference in New Issue
Block a user