Skip to content

Commit

Permalink
fix: macOS 使用 swiftPM 集成报错
Browse files Browse the repository at this point in the history
原因: 虽然 MobileDebugger 仅在 iOS 下集成,但 swiftPM 还是会先编译 MD 的依赖再进行平台判断,也就是 screenshot,导致找不到 UIKit 报错
  • Loading branch information
YoloMao committed Sep 18, 2023
1 parent a41dfef commit 088759c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ let package = Package(
dependencies: [
"GrowingTrackerCore",
"GrowingService_WebSocket",
"GrowingService_Screenshot",
.target(name: "GrowingService_Screenshot", condition: .when(platforms: [.iOS])),
],
path: "Modules/MobileDebugger",
cSettings: [
Expand All @@ -328,8 +328,8 @@ let package = Package(
dependencies: [
"GrowingAutotrackerCore",
"GrowingService_WebSocket",
"GrowingService_Screenshot",
"GrowingModule_Hybrid",
.target(name: "GrowingService_Screenshot", condition: .when(platforms: [.iOS])),
.target(name: "GrowingModule_Hybrid", condition: .when(platforms: [.iOS, .macCatalyst])),
],
path: "Modules/WebCircle",
cSettings: [
Expand Down

0 comments on commit 088759c

Please sign in to comment.