swift-index-store icon indicating copy to clipboard operation
swift-index-store copied to clipboard

Unsafe flags prevent versioned using with SwiftPM

Open jpsim opened this issue 2 years ago • 2 comments

With this integration:

dependencies: [
  .package(url: "https://github.com/lyft/swift-index-store.git", from: "1.2.0"),
],

The following error is produced with Swift Package Manager:

the target 'IndexStore' in product 'IndexStore' contains unsafe build flags

It's possible to work around this by integrating swift-index-store with a branch rather than a version:

dependencies: [
  .package(url: "https://github.com/lyft/swift-index-store.git", branch: "main"),
],

But then SwiftPM isn't happy if this is done in a transitive dependency.

jpsim avatar May 12 '23 18:05 jpsim

hrm, yea i wonder what we can do in this case besides vendor the dylibs we're referencing? I believe I saw some conversation about loosening this restriction in Swift PM

keith avatar May 17 '23 17:05 keith

is there any update on this ?

ibrahimoktay avatar Sep 05 '24 11:09 ibrahimoktay