Skip to content

Commit

Permalink
Update app_with_spm_dependencies fixture to rely on -ObjC flag and do…
Browse files Browse the repository at this point in the history
…cument
  • Loading branch information
thedavidharris committed May 7, 2024
1 parent 464d622 commit 8dbd8b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fixtures/app_with_spm_dependencies/App/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ let project = Project(
with: [
"WKCompanionAppBundleIdentifier": "io.tuist.app",
]
),
sources: ["Sources/Watch/App/**"],
), π sources: ["Sources/Watch/App/**"],

dependencies: [
.target(name: "WatchExtension"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public enum AppKit {
_ = YAMLEncoder()

// Use GoogleSignIn
_ = GIDSignIn.sharedInstance.configuration
_ = GIDSignIn.sharedInstance.hasPreviousSignIn()

// Use Sentry
SentrySDK.startSession()
Expand Down
5 changes: 5 additions & 0 deletions fixtures/app_with_spm_dependencies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Application with Swift Package Manager Dependencies

This example contains an example that uses Swift Package Manager dependencies.

It also contains a static Objective-C dependency that relies on the `-ObjC` linker flag to be added to the consuming application.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extension ProjectDescription.Settings {
.settings(
base: [
"SOME_BASE_FLAG": .string("VALUE"),
"OTHER_LDFLAGS": .string("-ObjC"),
].otherSwiftFlags("-enable-actor-data-race-checks"),
configurations: BuildEnvironment.allCases.map(\.targetConfiguration)
)
Expand Down

0 comments on commit 8dbd8b3

Please sign in to comment.