Skip to content

Commit

Permalink
[Fix] binaryTarget 하나만 존재하면 SPM Framework 추가시 목록에 노출되지 않는 문제 대응 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonoogi authored Feb 23, 2023
1 parent f963874 commit 565ed12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ let package = Package(
products: [
.library(
name: "ChannelIOSDK",
targets: ["ChannelIOFront"]),
targets: ["ChannelIOFront", "ChannelIOSDKTarget"]),
],
targets: [
.binaryTarget(
name: "ChannelIOFront",
url: "https://mobile-static.channel.io/ios/10.2.0/spm-xcframework.zip",
checksum: "6a32fd73d21f36d6c2bb759775df65ca6c0a57d9748e634cc3d567b680e0d52c"
)
),
// NOTE: targets 안에 binaryTarget 하나만 존재할 경우 SPM Framework 추가 목록에 노출되지 않는 버그가 있어
// 이를 방지하기 위한 Stub target을 추가합니다 - finn. 2023.02.23
.target(name: "ChannelIOSDKTarget")
],
swiftLanguageVersions: [.v5]
)
)
10 changes: 10 additions & 0 deletions Sources/ChannelIOSDKTarget/ChannelIOSDKTarget.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// ChannelIOSDKTarget.swift
//
//
// Created by 구본욱 on 2023/02/23.
//

import Foundation

class ChannelIOSDKTarget { }

0 comments on commit 565ed12

Please sign in to comment.