Skip to content

Commit

Permalink
fix: 兼容 swift 5.6/5.7,binaryTarget 沿用 framework name
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed Sep 20, 2023
1 parent fbba3b3 commit fc7b785
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let package = Package(
name: "GrowingAPM",
targets: [
"GrowingAPMCore",
"GrowingAPMCrashMonitor",
"GrowingAPMCrashMonitorWrapper",
"GrowingAPMUIMonitor",
]
),
Expand All @@ -40,7 +40,7 @@ let package = Package(
),
.library(
name: "GrowingAPMCrashMonitor",
targets: ["GrowingAPMCrashMonitor"]
targets: ["GrowingAPMCrashMonitorWrapper"]
),
.library(
name: "GrowingAPMUIMonitor",
Expand All @@ -58,9 +58,9 @@ let package = Package(
// MARK: - GrowingAPM Wrapper

.target(
name: "GrowingAPMCrashMonitor",
name: "GrowingAPMCrashMonitorWrapper",
dependencies: [
"GrowingAPMCrashMonitorFramework",
"GrowingAPMCrashMonitor",
],
path: "SwiftPM-Wrap/GrowingAPMCrashMonitor-Wrapper",
resources: [.copy("Resources/GrowingAPMCrashMonitor.bundle/PrivacyInfo.xcprivacy")],
Expand All @@ -76,7 +76,7 @@ let package = Package(
// MARK: - GrowingAPM Binary

.binaryTarget(
name: "GrowingAPMCrashMonitorFramework",
name: "GrowingAPMCrashMonitor",
path: "CrashMonitor/GrowingAPMCrashMonitor.xcframework"
),
.binaryTarget(
Expand Down

0 comments on commit fc7b785

Please sign in to comment.