Skip to content

Commit

Permalink
Merge pull request #555 from graboosky/dylib_linking_issue
Browse files Browse the repository at this point in the history
Fix for warning: "Linking against a dylib which is not safe for use in application extensions"
  • Loading branch information
kishikawakatsumi authored Feb 7, 2023
2 parents 6299dae + 84bb98c commit ecb18d8
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 ecb18d8

Please sign in to comment.