Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsafe flags prevent versioned using with SwiftPM #27

Open
jpsim opened this issue May 12, 2023 · 1 comment
Open

Unsafe flags prevent versioned using with SwiftPM #27

jpsim opened this issue May 12, 2023 · 1 comment

Comments

@jpsim
Copy link

jpsim commented May 12, 2023

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
Copy link
Member

keith commented May 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants