Skip to content

Commit 5425458

Browse files
cameroncookecodex
andcommitted
fix(build): Restore SPM linkage for CI compatibility
Keep the normal Swift Package products using the explicit static linkage that existed before the binary distribution work. Xcode 15.4 CI still depends on that behavior when the iOS DemoApp build also builds the embedded watch app. The XCFramework distribution continues to force dynamic frameworks through temporary distribution packages, so binary artifact generation remains separate from normal SPM linkage. Refs EME-1168 Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 3d5c498 commit 5425458

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Package.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,30 @@ let package = Package(
1010
// Products define the executables and libraries a package produces, making them visible to other packages.
1111
.library(
1212
name: "PreviewGallery",
13+
type: .static,
1314
targets: ["PreviewGallery"]),
1415
// Test library to import in your XCTest target.
1516
// This is the only library that depends on XCTest.framework
1617
.library(
1718
name: "SnapshottingTests",
19+
type: .static,
1820
targets: ["SnapshottingTests"]),
1921
// Link the main app to this target to use custom snapshot settings
2022
// This lib does not get inserted when running tests to avoid
2123
// duplicate symbols.
2224
.library(
2325
name: "SnapshotPreferences",
26+
type: .static,
2427
targets: ["SnapshotPreferences"]),
2528
// Core functionality for snapshotting exported from the internal package
2629
.library(
2730
name: "SnapshotPreviewsCore",
31+
type: .static,
2832
targets: ["SnapshotPreviewsCore"]),
2933
// Shared models required by the binary framework distribution.
3034
.library(
3135
name: "SnapshotSharedModels",
36+
type: .static,
3237
targets: ["SnapshotSharedModels"]),
3338
// Dynamic library that your main app will have inserted to generate previews
3439
.library(

0 commit comments

Comments
 (0)