MobileNativeFoundation / swift-index-store

Library to read from Swift / clang source code indexes
Apache License 2.0
139 stars 12 forks source link

Unsafe flags prevent versioned using with SwiftPM #27

Open jpsim opened 1 year ago

jpsim commented 1 year ago

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.

keith commented 1 year ago

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

ibrahimoktay commented 2 months ago

is there any update on this ?