Skip to content

Commit

Permalink
Fix for warning: "Linking against a dylib which is not safe for use i…
Browse files Browse the repository at this point in the history
…n application extensions"
  • Loading branch information
Patryk Grabowski committed Feb 7, 2023
1 parent 6299dae commit 84bb98c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ let package = Package(
.library(name: "KeychainAccess", targets: ["KeychainAccess"])
],
targets: [
.target(name: "KeychainAccess", path: "Lib/KeychainAccess")
.target(
name: "KeychainAccess",
path: "Lib/KeychainAccess",
linkerSettings: [.unsafeFlags(["-Xlinker", "-no_application_extension"])])
]
)
7 changes: 6 additions & 1 deletion Package@swift-5.3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ let package = Package(
.library(name: "KeychainAccess", targets: ["KeychainAccess"])
],
targets: [
.target(name: "KeychainAccess", path: "Lib/KeychainAccess", exclude:["Info.plist"])
.target(
name: "KeychainAccess",
path: "Lib/KeychainAccess",
exclude: ["Info.plist"],
linkerSettings: [.unsafeFlags(["-Xlinker", "-no_application_extension"])]
)
]
)

0 comments on commit 84bb98c

Please sign in to comment.